Skip to content

LockManager: Make Level null-safe#19

Open
ByThePowerOfScience wants to merge 1 commit intoOcto-Studios:masterfrom
ByThePowerOfScience:patch-1
Open

LockManager: Make Level null-safe#19
ByThePowerOfScience wants to merge 1 commit intoOcto-Studios:masterfrom
ByThePowerOfScience:patch-1

Conversation

@ByThePowerOfScience
Copy link
Copy Markdown

Fixes an NPE when certain tiles are deserialized while the level is loading. They rightfully don't reference the level that's currently null, but that also means the isLocked method throws a NPE for the level.isClientSide access.

I went ahead and made the rest of them null-safe just in case. Even though no one should be passing null to them, level loading is weird enough that you can never be sure.

@catboybinary catboybinary self-assigned this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants