fix so that it actually always updates both clients

This commit is contained in:
Edvin Bryntesson committed 2024-09-05 23:34:11 +02:00
1 parent daaafeefea
commit d07eec2245
5 files changed
+42 -18

No files matched your search

+6 -1
View File
@@ -32,7 +32,12 @@ impl Click {
-999 => Slot::OutsideInventory,
_ => {
// TODO: Error here
Slot::Normal(slot.try_into().unwrap())
let slot = slot.try_into();
if let Ok(slot) = slot {
Slot::Normal(slot)
} else {
Slot::OutsideInventory
}
}
};
let button = match button {