mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-25 20:58:34 +01:00
parent
5d94984aa5
commit
df1b703534
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ public class BlockSpawnLamp extends BlockContainerImpl implements IVisualizable,
|
||||||
return;
|
return;
|
||||||
IWorld world = event.getWorld();
|
IWorld world = event.getWorld();
|
||||||
BlockPos pos = new BlockPos(event.getX(), event.getY(), event.getZ());
|
BlockPos pos = new BlockPos(event.getX(), event.getY(), event.getZ());
|
||||||
|
if (!(world instanceof World))
|
||||||
|
return;
|
||||||
WorldData data = (WorldData) IWorldData.getWorldData((World) world);
|
WorldData data = (WorldData) IWorldData.getWorldData((World) world);
|
||||||
for (TileEntitySpawnLamp lamp : data.spawnLamps) {
|
for (TileEntitySpawnLamp lamp : data.spawnLamps) {
|
||||||
int range = lamp.getRadius();
|
int range = lamp.getRadius();
|
||||||
|
|
Loading…
Reference in a new issue