From 60cb2dcfd82c3c62912bb0b3e2ce6f77b755d29e Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 4 Mar 2023 01:21:16 +0100 Subject: [PATCH] fix: AutoTool ghost blocks --- src/main/java/ftbsc/bscv/modules/self/AutoTool.java | 2 ++ src/main/resources/META-INF/accesstransformer.cfg | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/ftbsc/bscv/modules/self/AutoTool.java b/src/main/java/ftbsc/bscv/modules/self/AutoTool.java index a036ecd..0e68658 100644 --- a/src/main/java/ftbsc/bscv/modules/self/AutoTool.java +++ b/src/main/java/ftbsc/bscv/modules/self/AutoTool.java @@ -62,6 +62,7 @@ public class AutoTool extends AbstractModule implements ICommons { } } MC.player.inventory.selected = current_slot; + MC.gameMode.ensureHasSentCarriedItem(); // ACCESSTRANSFORMER break; case ENTITY: double current_damage = 0.f; @@ -78,6 +79,7 @@ public class AutoTool extends AbstractModule implements ICommons { } } MC.player.inventory.selected = current_slot; + MC.gameMode.ensureHasSentCarriedItem(); // ACCESSTRANSFORMER break; case MISS: break; diff --git a/src/main/resources/META-INF/accesstransformer.cfg b/src/main/resources/META-INF/accesstransformer.cfg index 90d7254..e9350e7 100644 --- a/src/main/resources/META-INF/accesstransformer.cfg +++ b/src/main/resources/META-INF/accesstransformer.cfg @@ -3,3 +3,4 @@ public net.minecraft.client.gui.screen.Screen field_230705_e_ # children public net.minecraft.client.network.play.NetworkPlayerInfo field_178866_b # gameMode public net.minecraft.network.play.client.CPlayerPacket field_149474_g # onGround public net.minecraft.entity.Entity field_71087_bX # isInsidePortal +public net.minecraft.client.multiplayer.PlayerController func_78750_j()V