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