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 -1
View File
@@ -1,4 +1,4 @@
import { ClientMessage, EntityInfo, PlayerInfo, ServerMessage } from "$/common/protocol.ts";
import { ClientMessage, EntityInfo, MenuSlotInfo, PlayerInfo, ServerMessage } from "$/common/protocol.ts";
import type { ModListing } from "$/common/mod_loader.ts";
import type { Join, ServerSocket, Welcome } from "./handshake.ts";
@@ -11,6 +11,8 @@ export class Connection {
server_blocks: string[];
spawn: { x: number; y: number; z: number; yaw: number; pitch: number };
selected_slot: number;
// the slots mods added to menu 0
player_menu: MenuSlotInfo[];
time: number;
// who was already there when we joined, they become entities in the level
initial_players: PlayerInfo[];
@@ -24,6 +26,7 @@ export class Connection {
this.server_blocks = join.blocks;
this.spawn = join.spawn;
this.selected_slot = join.selected_slot;
this.player_menu = join.player_menu;
this.time = join.time;
this.initial_players = join.players;
this.initial_entities = join.entities;