Advance world clock between updates

This commit is contained in:
Tanner
2026-11-07 22:14:46 +00:00
parent a16b297db7
commit 9cbadbd551
4 changed files with 59 additions and 4 deletions
+6
View File
@@ -420,6 +420,9 @@ def start_automation(global_state, initialize=True):
g.protocol_version = 777
if initialize:
g.time = 0.0
g.time_base = None
g.time_update_received_at = None
g.clock_rate = 1.0
g.path = []
g.look_at = None
g.y_v = 0.0
@@ -505,6 +508,9 @@ def start_automation(global_state, initialize=True):
g.get('connection') and g.connection.connected):
started = time.monotonic()
now = time.monotonic()
game = g.get('game')
if game is not None:
game._advance_world_time()
if not initial_world_ready:
if not bot.missing_movement_chunks(g):
if loaded_since is None: