Use IEnhancedContainer in setChanged
This commit is contained in:
parent
a5b96fa4c4
commit
70bfa114c8
@ -63,8 +63,8 @@ open class MatteryMenuSlot(container: Container, index: Int, x: Int = 0, y: Int
|
||||
}
|
||||
|
||||
override fun setChanged() {
|
||||
if (container is IMatteryContainer) {
|
||||
(container as IMatteryContainer).setChanged(containerSlot)
|
||||
if (container is IEnhancedContainer) {
|
||||
(container as IEnhancedContainer).setChanged(containerSlot)
|
||||
} else {
|
||||
super.setChanged()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user