Registry refactor and clear queues on board entry
This commit is contained in:
@@ -413,6 +413,7 @@ impl GameState {
|
||||
x: ax as i64,
|
||||
y: ay as i64,
|
||||
};
|
||||
self.board_mut().clear_all_queues();
|
||||
// Rebuild the script host for the new board's objects.
|
||||
self.scripts = ScriptHost::new(
|
||||
&self.world.boards[&self.current_board_name],
|
||||
|
||||
Reference in New Issue
Block a user