fix so that it actually always updates both clients
This commit is contained in:
5 files changed
+42
-18
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user