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