mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 03:43:30 +01:00
Fixed spawn lamp behavior sometimes persisting without the lamps being present
Closes #131
This commit is contained in:
parent
d1e445e54d
commit
5a4dbfb453
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ public class BlockSpawnLamp extends BlockContainerImpl implements IVisualizable,
|
|||
return;
|
||||
WorldData data = (WorldData) IWorldData.getWorldData((World) world);
|
||||
for (TileEntitySpawnLamp lamp : data.spawnLamps) {
|
||||
if (lamp.isRemoved())
|
||||
continue;
|
||||
|
||||
int range = lamp.getRadius();
|
||||
if (range <= 0)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue