Ignore item equality when checking shouldCauseBlockBreakReset, fixes #10645 (#10648)

This commit is contained in:
Jonathing authored and GitHub committed 2025-09-01 19:36:31 -07:00
1 parent f31519b6bb
commit 3cd49ed58d
1 file changed
+4 -2
@@ -88,12 +88,14 @@
}
public void tick() {
@@ -263,7 +_,7 @@
@@ -263,7 +_,9 @@
private boolean sameDestroyTarget(BlockPos p_105282_) {
ItemStack itemstack = this.minecraft.player.getMainHandItem();
- return p_105282_.equals(this.destroyBlockPos) && ItemStack.isSameItemSameTags(itemstack, this.destroyingItem);
+ return p_105282_.equals(this.destroyBlockPos) && ItemStack.isSameItemSameTags(itemstack, this.destroyingItem) && !destroyingItem.shouldCauseBlockBreakReset(itemstack);
+ if (Boolean.FALSE)
+ ItemStack.isSameItemSameTags(itemstack, this.destroyingItem);
+ return p_105282_.equals(this.destroyBlockPos) && !destroyingItem.shouldCauseBlockBreakReset(itemstack);
}
private void ensureHasSentCarriedItem() {