From de89e758ccdaa4a6721feb7ffeb103fcc282272c Mon Sep 17 00:00:00 2001 From: iLostName <55976057+iLostName@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:57:27 +0100 Subject: [PATCH] remote: a server's client doesn't load the loot tables on its first tick --- crates/horizon-client/src/game.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index 0719878eb..55ec19de6 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -2700,7 +2700,13 @@ impl Game<'_> { behaviours: self.res.behaviours(), items: self.res.items(), recipes: self.res.recipes(), - loot: horizon_client::structure_blocks::loot_data(&self.options.resources), + // A client rolls no loot (LootTable.getRandomItems needs a + // ServerLevel): it doesn't load the tables on its game thread. + loot: if self.remote.is_some() { + None + } else { + horizon_client::structure_blocks::loot_data(&self.options.resources) + }, registry: self.pack.assets.registry, rules, difficulty: i32::from(self.ui.difficulty),