Put gui tick above other systems

This commit is contained in:
2026-03-10 19:57:00 -03:00
parent e9da307841
commit 25c950422b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -38,11 +38,11 @@ export class ClientWorld extends World {
// Logic systems // Logic systems
this.add_system(new UIInteractionSystem(), "main_menu"); this.add_system(new UIInteractionSystem(), "main_menu");
this.add_system(new UIInteractionSystem(), "paused"); this.add_system(new UIInteractionSystem(), "paused");
this.add_system(new GuiTickSystem(), "game");
this.add_system(new ClickableSystem(), "game"); this.add_system(new ClickableSystem(), "game");
this.add_system(new PlayerControlsSystem(), "game"); this.add_system(new PlayerControlsSystem(), "game");
this.add_system(new MovementSystem(), "game"); this.add_system(new MovementSystem(), "game");
this.add_system(new DimensionLogicSystem(), "game"); this.add_system(new DimensionLogicSystem(), "game");
this.add_system(new GuiTickSystem(), "game");
// render systems // render systems
this.add_system(new RenderSystem(), "game"); this.add_system(new RenderSystem(), "game");
+1 -1
View File
@@ -9,7 +9,7 @@ const PADDING = 10;
export class GuiChest extends GuiScreen { export class GuiChest extends GuiScreen {
override inventory_width = PADDING * 2 + SLOT_SIZE * 9; override inventory_width = PADDING * 2 + SLOT_SIZE * 9;
override inventory_height = PADDING * 3 + SLOT_SIZE * 7; override inventory_height = PADDING * 4 + SLOT_SIZE * 7;
constructor(inventory: Inventory, player_inventory: PlayerInventory) { constructor(inventory: Inventory, player_inventory: PlayerInventory) {
super(inventory, player_inventory, undefined); super(inventory, player_inventory, undefined);