Fixed an issue with conveyor belts failing to load from saves

This commit is contained in:
Robert S 2014-05-23 00:35:55 -04:00
parent 28b6c601cd
commit 5d44e79e5b

View file

@ -91,7 +91,7 @@ public class TileConveyorBelt extends TileBase implements IEntityConveyor, IRota
// Sync the animation. Slant belts are slower.
if (this.getBeltType() == BeltType.NORMAL || this.getBeltType() == BeltType.RAISED)
{
{
if (this.animationFrame < 0)
this.animationFrame = 0;
if (this.animationFrame > MAX_FRAME)
@ -209,6 +209,7 @@ public class TileConveyorBelt extends TileBase implements IEntityConveyor, IRota
slantType = BeltType.NORMAL;
}
this.slantType = slantType;
this.worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
if (worldObj != null)
this.worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}