mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Fix not being able to break blocks in survival. Closes #10561
This commit is contained in:
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)) {
|
||||
|
||||
Reference in new issue
Block a user