remote: a server's client doesn't load the loot tables on its first tick

This commit is contained in:
iLostName
2026-10-27 14:57:27 +01:00
parent 12e0094f1f
commit de89e758cc
+7 -1
View File
@@ -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),