Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't initialize/alter objects during module loading in Construction.lua #6681

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

4z0t
Copy link
Member

@4z0t 4z0t commented Mar 1, 2025

Description of the proposed changes

Initializing/altering objects during loading of a module is a bad habbit, especially if it is from another module. In this case it can cause error and game freeze if UI mod tries to access construction.lua before UI is created.

Testing done on the proposed changes

Queue dragging works as normal.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@4z0t 4z0t requested a review from lL1l1 March 1, 2025 09:56
@4z0t 4z0t added the area: ui Anything to do with the User Interface of the Game label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui Anything to do with the User Interface of the Game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant