Single module modding

This commit is contained in:
2026-11-14 12:18:41 -03:00
parent 605008f584
commit 313098892e
134 changed files with 919 additions and 924 deletions
+2 -2
View File
@@ -587,7 +587,7 @@ export class GameServer {
this.#send(player, overlay ? { type: "chat", text, overlay } : { type: "chat", text });
}
// a mod's server script to its client script, see ctx.net
// a mod's server phase to its client phase, see ctx.net
send_mod_message(player: ServerPlayer, channel: string, data: unknown) {
this.#send(player, { type: "mod", channel, data });
}
@@ -1372,7 +1372,7 @@ export class GameServer {
return;
}
// the shared rules first, the ones the client guessed, then the server script's. sneaking with an item skips the
// the shared rules first, the ones the client guessed, then the server phase's. sneaking with an item skips the
// block, like minecraft's secondary use, so a block can be placed against a chest
const sneaking = player.sneaking;
let handled = false;