Fixed GridTickable bug.
This commit is contained in:
parent
f532e37986
commit
e44bd923fc
4
me/cache/helpers/TickTracker.java
vendored
4
me/cache/helpers/TickTracker.java
vendored
|
@ -46,6 +46,8 @@ public class TickTracker implements Comparable<TickTracker>
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(TickTracker t)
|
public int compareTo(TickTracker t)
|
||||||
{
|
{
|
||||||
return (int) ((host.getCurrentTick() - lastTick) + current_rate);
|
int nextTick = (int) ((lastTick - host.getCurrentTick()) + current_rate);
|
||||||
|
int ts_nextTick = (int) ((t.lastTick - host.getCurrentTick()) + t.current_rate);
|
||||||
|
return nextTick - ts_nextTick;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue