Closed Prunoideae closed 1 month ago
Current FinalizeSpawn event has a nullable spawner, so
FinalizeSpawn
https://github.com/KubeJS-Mods/KubeJS/blob/eb9b153259f6219adc70f4e8482cd653a9fbd460/src/main/java/dev/latvian/mods/kubejs/level/SpawnerJS.java#L10
will throw NPE since spawner is null.
@Nullable public Either<BlockEntity, Entity> getSpawner() { return this.spawner; }
Also fixed #911 by preventing player from picking up items if a chest GUI is opened.
Description
Current
FinalizeSpawn
event has a nullable spawner, sohttps://github.com/KubeJS-Mods/KubeJS/blob/eb9b153259f6219adc70f4e8482cd653a9fbd460/src/main/java/dev/latvian/mods/kubejs/level/SpawnerJS.java#L10
will throw NPE since spawner is null.
Also fixed #911 by preventing player from picking up items if a chest GUI is opened.