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,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue