Change curios to always show on inventory

This commit is contained in:
2026-10-01 16:35:41 -03:00
parent deba36260e
commit 3dc7d2adee
24 changed files with 244 additions and 159 deletions
+4
View File
@@ -1,9 +1,13 @@
import { Container, Cursor } from "$/common/inventory.ts";
import type { MenuSlotInfo } from "$/common/protocol.ts";
// the local copies of the containers the server syncs to this player
export class ClientInventories {
inventory = new Container(9 * 4);
crafting = new Container(10);
// the slots mods added to menu 0 and what's in them, see join's player_menu
extra_slots: MenuSlotInfo[] = [];
extra = new Container(0);
cursor: Cursor = { item: undefined };
hotbar_selected = 0;
}