PrimaryLevelData K field in ServerLevelMixin can be null (crash) #1559
Labels
Bug
Something isn't working
Version: Trials (1.20/1.20.1)
Waiting for Work | 等待处理
This issue is unresolved due to no free time
I have confirmed that ...
Arclight version
1.20.1-1.0.6-SNAPSHOT
OS & Java versions
21
Plugins and Mods
Description
In ServerLevelMixin you have 2 instance of check which assing a value to that PrimaryLevelData K field.
Obviously this allows for a branch in whih neither are true (which can and will happen with mods as that class is NOT sealed and mods are free to subclass it), causing a crash in the code that's right after that since you arent null checking it
Arclight/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/server/level/ServerLevelMixin.java
Line 164 in 1732a9b
Step to reproduce
No response
Logs
No response
Server pack link (Optional)
No response
The text was updated successfully, but these errors were encountered: