Merge pull request #90 from agaricusb/patch-1
Fix possible NPE in RiftRegenerator.regenerate()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user