aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/client_impl/inventory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/client_impl/inventory.rs')
-rw-r--r--azalea/src/client_impl/inventory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/client_impl/inventory.rs b/azalea/src/client_impl/inventory.rs
index 0ea11477..fc1e2e73 100644
--- a/azalea/src/client_impl/inventory.rs
+++ b/azalea/src/client_impl/inventory.rs
@@ -36,7 +36,7 @@ impl Client {
"Hotbar slot index must be in the range 0..=8"
);
- let mut ecs = self.ecs.lock();
+ let mut ecs = self.ecs.write();
ecs.trigger(SetSelectedHotbarSlotEvent {
entity: self.entity,
slot: new_hotbar_slot_index,