Skip to content

Commit

Permalink
Merge pull request #5 from alkcorp/1.7.10-krypt
Browse files Browse the repository at this point in the history
Allows Backpack to accept wildcard items.
  • Loading branch information
Dream-Master authored Oct 7, 2021
2 parents 4c71e42 + 5e86d62 commit 237abd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/magicbees/storage/BackpackDefinition.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.List;

import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import forestry.api.storage.IBackpackDefinition;

/**
Expand Down Expand Up @@ -70,7 +71,7 @@ public boolean isValidItem(ItemStack itemStack) {
// If comparison stack has meta of -1
if (stack.getItem() == itemStack.getItem())
{
flag = stack.getItemDamage() == -1 || stack.getItemDamage() == itemStack.getItemDamage();
flag = stack.getItemDamage() == -1 || stack.getItemDamage() == OreDictionary.WILDCARD_VALUE || stack.getItemDamage() == itemStack.getItemDamage();
}
}

Expand Down

0 comments on commit 237abd6

Please sign in to comment.