mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Merge pull request #1472 from MellowArpeggiation/master
Fix crash on RBMK meltdown near spotlights
This commit is contained in:
commit
d96c0e4016
@ -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
|
||||
public static List<ForgeDirection> getDirections(World world, int x, int y, int z) {
|
||||
TileEntityData te = (TileEntityData) world.getTileEntity(x, y, z);
|
||||
if(te == null) return new ArrayList<ForgeDirection>();
|
||||
return getDirections(te.metadata);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user