mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix crash on RBMK meltdown near spotlights
This commit is contained in:
parent
39ca87d7a9
commit
5dedbd3728
@ -55,6 +55,7 @@ public class SpotlightBeam extends BlockContainer {
|
|||||||
// 111111 -> ALL directions illuminated, all incoming lights need to be disabled to turn off the beam
|
// 111111 -> ALL directions illuminated, all incoming lights need to be disabled to turn off the beam
|
||||||
public static List<ForgeDirection> getDirections(World world, int x, int y, int z) {
|
public static List<ForgeDirection> getDirections(World world, int x, int y, int z) {
|
||||||
TileEntityData te = (TileEntityData) world.getTileEntity(x, y, z);
|
TileEntityData te = (TileEntityData) world.getTileEntity(x, y, z);
|
||||||
|
if(te == null) return new ArrayList<ForgeDirection>();
|
||||||
return getDirections(te.metadata);
|
return getDirections(te.metadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user