Fix possible NPE in RiftRegenerator.regenerate()

This commit is contained in:
agaricusb 2013-10-06 19:10:04 -07:00
parent c17583820c
commit 66ad5a798f

View file

@ -57,12 +57,15 @@ public class RiftRegenerator implements IRegularTickReceiver {
{
dimHelper.getWorld(link.locDimID).setBlockTileEntity(link.locXCoord, link.locYCoord, link.locZCoord, new TileEntityRift());
}
if (rift != null)
{
rift.hasGrownRifts = true;
}
}
}
}
}
}
catch (Exception e)
{
System.err.println("An exception occurred in RiftRegenerator.regenerate():");