Fix wait instruction inconsistency (#9479)

This commit is contained in:
Redstonneur1256 2024-01-20 15:37:18 +01:00 committed by GitHub
parent 778e61e8d5
commit 9d4f5ff87c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1230,7 +1230,6 @@ public class LExecutor{
public int value;
public float curTime;
public long frameId;
public WaitI(int value){
this.value = value;
@ -1247,11 +1246,7 @@ public class LExecutor{
//skip back to self.
exec.var(varCounter).numval --;
exec.yield = true;
}
if(state.updateId != frameId){
curTime += Time.delta / 60f;
frameId = state.updateId;
}
}
}