From 528480155481af615019dd70292fff183a22a244 Mon Sep 17 00:00:00 2001 From: The Dax Date: Fri, 4 Jul 2025 12:02:22 -0400 Subject: [PATCH] Inventory: fix the operation type for item discard, it was incorrect --- src/inventory/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory/mod.rs b/src/inventory/mod.rs index 18e218e..a867abc 100644 --- a/src/inventory/mod.rs +++ b/src/inventory/mod.rs @@ -164,7 +164,7 @@ impl Inventory { } pub fn process_action(&mut self, action: &ItemOperation) { - if action.operation_type == 78 { + if action.operation_type == 145 { // discard let src_container = self.get_container_mut(&action.src_storage_id); let src_slot = src_container.get_slot_mut(action.src_container_index);