Advance world clock between updates
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user