fixed the spawn lamp again cause I'm a duh

This commit is contained in:
Ellpeck 2020-02-16 15:13:29 +01:00
parent 2e5977531d
commit 4993d9db7d

View file

@ -44,6 +44,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();