add a bit of delay on every constructor / destructor operation

This commit is contained in:
Raoul Van den Berge
2015-12-24 22:08:19 +01:00
parent 0e0c6eb5b9
commit 1c8f63e51b
2 changed files with 26 additions and 20 deletions

View File

@@ -27,6 +27,8 @@ public class TileConstructor extends TileMachine implements IInventory, ISidedIn
@Override
public void updateMachine()
{
if (ticks % 10 == 0)
{
int frontX = xCoord + getDirection().offsetX;
int frontY = yCoord + getDirection().offsetY;
@@ -42,6 +44,7 @@ public class TileConstructor extends TileMachine implements IInventory, ISidedIn
}
}
}
}
@Override
public int getCompare()

View File

@@ -16,6 +16,8 @@ public class TileDestructor extends TileMachine
@Override
public void updateMachine()
{
if (ticks % 10 == 0)
{
int frontX = xCoord + getDirection().offsetX;
int frontY = yCoord + getDirection().offsetY;
@@ -39,3 +41,4 @@ public class TileDestructor extends TileMachine
}
}
}
}