diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/Slots.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/Slots.kt index b39f12222..431d04c73 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/Slots.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/Slots.kt @@ -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() }