Use IEnhancedContainer in setChanged

This commit is contained in:
DBotThePony 2025-03-03 19:47:45 +07:00
parent a5b96fa4c4
commit 70bfa114c8
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -63,8 +63,8 @@ open class MatteryMenuSlot(container: Container, index: Int, x: Int = 0, y: Int
} }
override fun setChanged() { override fun setChanged() {
if (container is IMatteryContainer) { if (container is IEnhancedContainer) {
(container as IMatteryContainer).setChanged(containerSlot) (container as IEnhancedContainer).setChanged(containerSlot)
} else { } else {
super.setChanged() super.setChanged()
} }