Optimize fix for MC-176559 (#10649)

This commit is contained in:
Jonathing authored and GitHub committed 2025-09-01 20:22:28 -07:00
1 parent ddb5f6c749
commit 350bfa51e1
1 file changed
+5 -2
@@ -88,12 +88,15 @@
}
public void m_105287_() {
@@ -262,7 +_,7 @@
@@ -262,7 +_,10 @@
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_) && Boolean.logicalOr(true, ItemStack.m_150942_(itemstack, this.f_105192_)) && !f_105192_.shouldCauseBlockBreakReset(itemstack);
+ // FORGE: Remove this method call, but keep the bytecode intact for hacks that target it
+ if (Boolean.FALSE)
+ ItemStack.m_150942_(itemstack, this.f_105192_);
+ return p_105282_.equals(this.f_105191_) && !f_105192_.shouldCauseBlockBreakReset(itemstack);
}
private void m_105297_() {