Fix mattery container not deserializing properly
This commit is contained in:
parent
6ce2181a95
commit
68fedf0257
@ -247,12 +247,14 @@ open class MatteryContainer(var listener: ContainerListener, private val size: I
|
|||||||
|
|
||||||
if (freeSlots.remove(slotID)) {
|
if (freeSlots.remove(slotID)) {
|
||||||
slots[slotID] = item
|
slots[slotID] = item
|
||||||
|
// trackedSlots[slotID] = item.copy()
|
||||||
} else if (freeSlots.isEmpty()) {
|
} else if (freeSlots.isEmpty()) {
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
val slotID = freeSlots.firstInt()
|
val slotID = freeSlots.firstInt()
|
||||||
freeSlots.remove(slotID)
|
freeSlots.remove(slotID)
|
||||||
slots[slotID] = item
|
slots[slotID] = item
|
||||||
|
// trackedSlots[slotID] = item.copy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,6 +264,8 @@ open class MatteryContainer(var listener: ContainerListener, private val size: I
|
|||||||
filters[index] = item
|
filters[index] = item
|
||||||
map?.put(index, item)
|
map?.put(index, item)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user