Typo ticksPerRoation

This commit is contained in:
thatsIch
2014-09-21 00:35:08 +02:00
parent b10bf83da9
commit 6741c7800b
+5 -5
View File
@@ -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;
} }