Don't duplicate creative batteries

This commit is contained in:
DBotThePony 2022-10-02 23:05:00 +07:00
parent 427fc1c712
commit bbadfe8fb1
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -149,7 +149,7 @@ open class BatteryItem : Item {
override fun fillItemCategory(p_41391_: CreativeModeTab, p_41392_: NonNullList<ItemStack>) { override fun fillItemCategory(p_41391_: CreativeModeTab, p_41392_: NonNullList<ItemStack>) {
super.fillItemCategory(p_41391_, p_41392_) super.fillItemCategory(p_41391_, p_41392_)
if (allowedIn(p_41391_)) { if (!isCreative && allowedIn(p_41391_)) {
p_41392_.add(ItemStack(this).also { p_41392_.add(ItemStack(this).also {
it.matteryEnergy?.let { it.matteryEnergy?.let {
if (it is Power) { if (it is Power) {