From 66ad5a798f8911d88c334f2ccde3f6f91b2e1663 Mon Sep 17 00:00:00 2001 From: agaricusb Date: Sun, 6 Oct 2013 19:10:04 -0700 Subject: [PATCH] Fix possible NPE in RiftRegenerator.regenerate() --- StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java b/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java index 386c73b9..aeaaf32e 100644 --- a/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java +++ b/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java @@ -57,7 +57,10 @@ public class RiftRegenerator implements IRegularTickReceiver { { dimHelper.getWorld(link.locDimID).setBlockTileEntity(link.locXCoord, link.locYCoord, link.locZCoord, new TileEntityRift()); } - rift.hasGrownRifts = true; + if (rift != null) + { + rift.hasGrownRifts = true; + } } } }