From 079a6094cbda536a35b412699884f7efb25dabd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Korg=C3=B3l?= Date: Sat, 4 Jul 2020 18:40:23 +0200 Subject: [PATCH] Correctly load the loot table --- common/src/comp/inventory/item/mod.rs | 2 +- server/src/events/entity_manipulation.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/comp/inventory/item/mod.rs b/common/src/comp/inventory/item/mod.rs index 0065b3bb55..4e1ea47338 100644 --- a/common/src/comp/inventory/item/mod.rs +++ b/common/src/comp/inventory/item/mod.rs @@ -180,7 +180,7 @@ impl Item { BlockKind::ShortGrass => Some(assets::load_expect_cloned("common.items.grasses.short")), BlockKind::Coconut => Some(assets::load_expect_cloned("common.items.coconut")), BlockKind::Chest => { - let chosen = assets::load_expect::>("common.items.loot_table"); + let chosen = assets::load_expect::>("common.loot_table"); let chosen = chosen.choose(); Some(assets::load_expect_cloned(chosen)) diff --git a/server/src/events/entity_manipulation.rs b/server/src/events/entity_manipulation.rs index c2c6fbc9ef..003427d3c5 100644 --- a/server/src/events/entity_manipulation.rs +++ b/server/src/events/entity_manipulation.rs @@ -111,7 +111,7 @@ pub fn handle_destroy(server: &mut Server, entity: EcsEntity, cause: HealthSourc item_drops.remove(entity); item_drop.0 } else { - let chosen = assets::load_expect::>("common.items.loot_table"); + let chosen = assets::load_expect::>("common.loot_table"); let chosen = chosen.choose(); assets::load_expect_cloned(chosen)