1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-10 16:07:45 +00:00

Inventory: fix the operation type for item discard, it was incorrect

This commit is contained in:
The Dax 2025-07-04 12:02:22 -04:00 committed by Joshua Goins
parent 7291863481
commit 5284801554

View file

@ -164,7 +164,7 @@ impl Inventory {
} }
pub fn process_action(&mut self, action: &ItemOperation) { pub fn process_action(&mut self, action: &ItemOperation) {
if action.operation_type == 78 { if action.operation_type == 145 {
// discard // discard
let src_container = self.get_container_mut(&action.src_storage_id); let src_container = self.get_container_mut(&action.src_storage_id);
let src_slot = src_container.get_slot_mut(action.src_container_index); let src_slot = src_container.get_slot_mut(action.src_container_index);