From df1b7035343928c939c32f8f4d814efd9ce3295e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 16 Feb 2020 15:18:15 +0100 Subject: [PATCH] fixed the spawn lamp crashing Closes #80 --- src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java index 2ec46d29..137efce4 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java @@ -54,6 +54,8 @@ public class BlockSpawnLamp extends BlockContainerImpl implements IVisualizable, return; IWorld world = event.getWorld(); BlockPos pos = new BlockPos(event.getX(), event.getY(), event.getZ()); + if (!(world instanceof World)) + return; WorldData data = (WorldData) IWorldData.getWorldData((World) world); for (TileEntitySpawnLamp lamp : data.spawnLamps) { int range = lamp.getRadius();