Typo ticksPerRoation
This commit is contained in:
@@ -20,7 +20,7 @@ import appeng.util.Platform;
|
|||||||
public class TileCrank extends AEBaseTile implements ICustomCollision
|
public class TileCrank extends AEBaseTile implements ICustomCollision
|
||||||
{
|
{
|
||||||
|
|
||||||
final int ticksPerRoation = 18;
|
final int ticksPerRotation = 18;
|
||||||
|
|
||||||
// sided values..
|
// sided values..
|
||||||
public float visibleRotation = 0;
|
public float visibleRotation = 0;
|
||||||
@@ -34,11 +34,11 @@ public class TileCrank extends AEBaseTile implements ICustomCollision
|
|||||||
{
|
{
|
||||||
if ( rotation > 0 )
|
if ( rotation > 0 )
|
||||||
{
|
{
|
||||||
visibleRotation -= 360 / (ticksPerRoation);
|
visibleRotation -= 360 / (ticksPerRotation);
|
||||||
charge++;
|
charge++;
|
||||||
if ( charge >= ticksPerRoation )
|
if ( charge >= ticksPerRotation )
|
||||||
{
|
{
|
||||||
charge -= ticksPerRoation;
|
charge -= ticksPerRotation;
|
||||||
ICrankable g = getGrinder();
|
ICrankable g = getGrinder();
|
||||||
if ( g != null )
|
if ( g != null )
|
||||||
g.applyTurn();
|
g.applyTurn();
|
||||||
@@ -96,7 +96,7 @@ public class TileCrank extends AEBaseTile implements ICustomCollision
|
|||||||
if ( g.canTurn() )
|
if ( g.canTurn() )
|
||||||
{
|
{
|
||||||
hits = 0;
|
hits = 0;
|
||||||
rotation += ticksPerRoation;
|
rotation += ticksPerRotation;
|
||||||
this.markForUpdate();
|
this.markForUpdate();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user