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,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;
}
}
}
}