Changelog and small fix

This commit is contained in:
Imbris 2020-04-12 00:23:17 -04:00 committed by Pfauenauge90
parent b9a66a93b7
commit 053458c2e3
2 changed files with 4 additions and 5 deletions

View File

@ -44,6 +44,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- German translation - German translation
- Added a silhouette for players when they are occluded - Added a silhouette for players when they are occluded
- Added transparency to the player when zooming in - 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 ### Changed

View File

@ -174,11 +174,7 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv
}; };
if reinsert { if reinsert {
let _ = state let _ = inventory.insert(slot, item);
.ecs()
.write_storage::<comp::Inventory>()
.get_mut(entity)
.map(|inv| inv.insert(slot, item));
} }
Some(comp::InventoryUpdateEvent::Used) Some(comp::InventoryUpdateEvent::Used)