Reduced belt speed, and fixed animation loop
This commit is contained in:
parent
7bb06255e0
commit
75be41d49a
2 changed files with 4 additions and 4 deletions
|
@ -273,7 +273,7 @@ public class BlockConveyorBelt extends BlockTile
|
|||
|
||||
if (!world.isBlockIndirectlyGettingPowered(x, y, z))
|
||||
{
|
||||
double maxSpeed = 1;
|
||||
double maxSpeed = TileConveyorBelt.ACCELERATION;
|
||||
|
||||
if (maxSpeed > 0)
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ public class TileConveyorBelt extends TileBase implements IEntityConveyor, IRota
|
|||
public static final int PACKET_SLANT = 0;
|
||||
public static final int PACKET_REFRESH = 1;
|
||||
/** Acceleration of entities on the belt */
|
||||
public static final float ACCELERATION = 0.01f;
|
||||
public static final float ACCELERATION = 0.1f;
|
||||
|
||||
/** Frame count for texture animation from 0 - maxFrame */
|
||||
private int animationFrame = 0;
|
||||
|
@ -95,14 +95,14 @@ public class TileConveyorBelt extends TileBase implements IEntityConveyor, IRota
|
|||
if (this.animationFrame < 0)
|
||||
this.animationFrame = 0;
|
||||
if (this.animationFrame > MAX_FRAME)
|
||||
this.animationFrame = MAX_FRAME;
|
||||
this.animationFrame = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.animationFrame < 0)
|
||||
this.animationFrame = 0;
|
||||
if (this.animationFrame > MAX_SLANT_FRAME)
|
||||
this.animationFrame = MAX_SLANT_FRAME;
|
||||
this.animationFrame = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue