From bbadfe8fb1faf22f28ed2d336fcb8405dcbc12f4 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 2 Oct 2022 23:05:00 +0700 Subject: [PATCH] Don't duplicate creative batteries --- src/main/kotlin/ru/dbotthepony/mc/otm/item/BatteryItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/item/BatteryItem.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/item/BatteryItem.kt index c5e88f37f..179f2fab2 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/item/BatteryItem.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/item/BatteryItem.kt @@ -149,7 +149,7 @@ open class BatteryItem : Item { override fun fillItemCategory(p_41391_: CreativeModeTab, p_41392_: NonNullList) { super.fillItemCategory(p_41391_, p_41392_) - if (allowedIn(p_41391_)) { + if (!isCreative && allowedIn(p_41391_)) { p_41392_.add(ItemStack(this).also { it.matteryEnergy?.let { if (it is Power) {