Fix possible NPE in RiftRegenerator.regenerate()
This commit is contained in:
parent
c17583820c
commit
66ad5a798f
1 changed files with 4 additions and 1 deletions
|
@ -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():");
|
||||
|
|
Loading…
Reference in a new issue