From 70bfa114c87c892288bfb9357ea2b3f46ab1026f Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 3 Mar 2025 19:47:45 +0700 Subject: [PATCH] Use IEnhancedContainer in setChanged --- src/main/kotlin/ru/dbotthepony/mc/otm/menu/Slots.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }