aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author alemi <me@alemi.dev>2023-03-04 01:21:16 +0100
committer alemi <me@alemi.dev>2023-03-04 01:21:16 +0100
commit60cb2dcfd82c3c62912bb0b3e2ce6f77b755d29e (patch)
treea70d9a5c0fa1d0bd5e2e1c56ec4de3708744017d
parentf243885ac94825460c2ae015ca0275633cb810e0 (diff)
fix: AutoTool ghost blocks
-rw-r--r--src/main/java/ftbsc/bscv/modules/self/AutoTool.java2
-rw-r--r--src/main/resources/META-INF/accesstransformer.cfg1
2 files changed, 3 insertions, 0 deletions
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