Fixed Alertable
This commit is contained in:
parent
3ea5897fd9
commit
ae3e240080
1 changed files with 6 additions and 2 deletions
8
me/cache/TickManagerCache.java
vendored
8
me/cache/TickManagerCache.java
vendored
|
@ -109,8 +109,12 @@ public class TickManagerCache implements ITickManager
|
|||
if ( tt == null )
|
||||
throw new RuntimeException( "Invalid Alertted device, this node is not marked as alertable, or part of this grid." );
|
||||
|
||||
tt.lastTick = -tt.request.maxTickRate;
|
||||
addToQueue( tt );
|
||||
// set to awake, this is for sanity.
|
||||
sleeping.remove( node );
|
||||
awake.put( node, tt );
|
||||
|
||||
tt.lastTick = tt.lastTick - tt.request.maxTickRate;
|
||||
upcomingTicks.add( tt );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue