Phased out any usage of World.getTotalWorldTime() in favor of internal tickers. SubTileEntity now has a session and packet safe internal ticker.

This commit is contained in:
Lizbeth Rika committed 2014-12-05 19:20:17 +00:00
1 parent 0a7d5ec220
commit 765e302c7e
23 files changed
+47 -46

No files matched your search

@@ -44,13 +44,10 @@ public class SubTilePureDaisy extends SubTileEntity {
int positionAt = 0;
int[] ticksRemaining = new int[] { 200, 200, 200, 200, 200, 200, 200, 200 };
@Override
public boolean canUpdate() {
return true;
}
@Override
public void onUpdate() {
super.onUpdate();
positionAt++;
if(positionAt == POSITIONS.length)
positionAt = 0;