Fix not being able to break blocks in survival. Closes #10561

This commit is contained in:
LexManos committed 2025-06-18 12:28:19 -07:00
1 parent 47f7c68ed5
commit 18c806f1d0
1 file changed
+1 -1
@@ -5,7 +5,7 @@
public void handleBlockBreakAction(BlockPos p_215120_, ServerboundPlayerActionPacket.Action p_215121_, Direction p_215122_, int p_215123_, int p_215124_) {
+ var event = net.minecraftforge.event.ForgeEventFactory.onLeftClickBlock(player, p_215120_, p_215122_, p_215121_);
+ if (event == null || !this.isCreative()) {
+ if (event == null) {
+ return;
+ }
if (!this.player.canInteractWithBlock(p_215120_, 1.0)) {