update to 1.21.80

This commit is contained in:
ForestOfLight
2025-06-04 17:42:56 -07:00
Unverified
parent 36ad9c7de1
commit 6ad128cc9c
7 changed files with 19 additions and 8 deletions
@@ -28,7 +28,11 @@ export class Builders {
}
world.afterEvents.playerJoin.subscribe((event) => Builders.onJoin(event.playerId));
world.beforeEvents.playerLeave.subscribe((event) => Builders.onLeave(event.player.id));
world.beforeEvents.playerLeave.subscribe((event) => {
if (!event.player)
return;
Builders.onLeave(event.player.id);
});
world.afterEvents.worldLoad.subscribe((event) => {
for (const player of world.getAllPlayers()) {
Builders.onJoin(player.id);