From 49834da028e34b795ed0117b5d6f8c241282e903 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 8 Jul 2014 03:12:50 -0500 Subject: [PATCH] Fix bug where Transition planes would build up ticks and break network ticking. --- me/cache/TickManagerCache.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/me/cache/TickManagerCache.java b/me/cache/TickManagerCache.java index 314bc66a..18ff54fe 100644 --- a/me/cache/TickManagerCache.java +++ b/me/cache/TickManagerCache.java @@ -113,8 +113,14 @@ public class TickManagerCache implements ITickManager sleeping.remove( node ); awake.put( node, tt ); + // configure sort. tt.lastTick = tt.lastTick - tt.request.maxTickRate; + tt.current_rate = tt.request.minTickRate; + + // prevent dupes and tick build up. + upcomingTicks.remove( tt ); upcomingTicks.add( tt ); + return true; }