Merge pull request #1472 from MellowArpeggiation/master

Fix crash on RBMK meltdown near spotlights
This commit is contained in:
HbmMods 2024-05-05 18:48:10 +02:00 committed by GitHub
commit d96c0e4016
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}