From 053458c2e36ee1df83f0f06ef9eafcaf0eff13b7 Mon Sep 17 00:00:00 2001 From: Imbris Date: Sun, 12 Apr 2020 00:23:17 -0400 Subject: [PATCH] Changelog and small fix --- CHANGELOG.md | 3 +++ server/src/events/inventory_manip.rs | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c02676c7ba..aecaf98d91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - German translation - Added a silhouette for players when they are occluded - Added transparency to the player when zooming in +- Made armor and hotbar slots actually function +- Added dragging and right-click to use functionality to inventory, armor, & hotbar slotskillbars +- Added capes, lanterns, and more armor items ### Changed diff --git a/server/src/events/inventory_manip.rs b/server/src/events/inventory_manip.rs index 9181ce12f5..2228af5424 100644 --- a/server/src/events/inventory_manip.rs +++ b/server/src/events/inventory_manip.rs @@ -174,11 +174,7 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv }; if reinsert { - let _ = state - .ecs() - .write_storage::() - .get_mut(entity) - .map(|inv| inv.insert(slot, item)); + let _ = inventory.insert(slot, item); } Some(comp::InventoryUpdateEvent::Used)