Don't duplicate creative batteries
This commit is contained in:
parent
427fc1c712
commit
bbadfe8fb1
@ -149,7 +149,7 @@ open class BatteryItem : Item {
|
||||
override fun fillItemCategory(p_41391_: CreativeModeTab, p_41392_: NonNullList<ItemStack>) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user