Skip to content

Commit

Permalink
small clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
JR1811 committed Sep 2, 2024
1 parent 4d59972 commit b4e358d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.fabricatedatelier.mayor.util;

import net.fabricmc.fabric.api.transfer.v1.item.ItemVariant;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.Inventories;
import net.minecraft.inventory.SidedInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.math.Direction;
Expand Down Expand Up @@ -78,7 +78,7 @@ default ItemStack removeStack(int slot, int amount) {
return stack;
}

default boolean contains(Item item) {
default boolean contains(ItemVariant item) {
for (ItemStack stack : this.getItems()) {
if (stack.getItem().equals(item)) return true;
}
Expand Down

0 comments on commit b4e358d

Please sign in to comment.