Fixed Crash on Rift Removal

Fixed a crash from manipulating rift data on the client side. I let this
happen because it seemed like TileEntityRift already did that before.
This crash also exposed another issue: that server-side functions are
being used on the client side. I'm not sure how pervasive this is but
some client dimensions are being constructed with the server-side
constructor.
This commit is contained in:
SenseiKiwi 2014-07-15 14:51:46 -04:00
parent e793493331
commit 20db828ac0

View file

@ -151,7 +151,7 @@ public class TileEntityRift extends DDTileEntityBase
}
}
}
if (closeTimer >= CLOSING_PERIOD)
if (closeTimer >= CLOSING_PERIOD && !worldObj.isRemote)
{
DimLink link = PocketManager.getLink(this.xCoord, this.yCoord, this.zCoord, worldObj);
if (link != null)