Merge pull request #55 from agnor99/fix/54

Fix #54
This commit is contained in:
Frank 2022-11-15 19:57:47 +01:00 committed by GitHub
commit 5ef56a7dcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ public class TagManager {
public static boolean isToolWithMineableTag(ItemStack stack, TagKey<Block> tag) { public static boolean isToolWithMineableTag(ItemStack stack, TagKey<Block> tag) {
if (stack.getItem() instanceof DiggerItemAccessor dig) { if (stack.getItem() instanceof DiggerItemAccessor dig) {
return dig.bclib_getBlockTag().equals(tag); return dig.bclib_getBlockTag() == tag;
} }
return false; return false;
} }