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

This commit is contained in:
Jonathing authored and GitHub committed 2025-08-26 12:29:48 -07:00
1 parent d00f5c4013
commit ddb5f6c749
1 file changed
+1 -1
@@ -93,7 +93,7 @@
private boolean m_105281_(BlockPos p_105282_) {
ItemStack itemstack = this.f_105189_.f_91074_.m_21205_();
- return p_105282_.equals(this.f_105191_) && ItemStack.m_150942_(itemstack, this.f_105192_);
+ return p_105282_.equals(this.f_105191_) && ItemStack.m_150942_(itemstack, this.f_105192_) && !f_105192_.shouldCauseBlockBreakReset(itemstack);
+ return p_105282_.equals(this.f_105191_) && Boolean.logicalOr(true, ItemStack.m_150942_(itemstack, this.f_105192_)) && !f_105192_.shouldCauseBlockBreakReset(itemstack);
}
private void m_105297_() {