fixed auto32k

This commit is contained in:
Cloudburst
2021-05-14 11:45:34 +02:00
parent 0386ca88ea
commit 71fbaaf031

View File

@@ -14,8 +14,7 @@ import minegame159.meteorclient.settings.*;
import minegame159.meteorclient.systems.modules.Categories;
import minegame159.meteorclient.systems.modules.Module;
import minegame159.meteorclient.utils.Utils;
import minegame159.meteorclient.utils.player.InvUtils;
import minegame159.meteorclient.utils.player.PlayerUtils;
import minegame159.meteorclient.utils.player.*;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.client.gui.screen.ingame.Generic3x3ContainerScreen;
@@ -123,7 +122,7 @@ public class Auto32K extends Module {
mc.player.setSneaking(true);
mc.player.inventory.selectedSlot = shulkerSlot;
if (!PlayerUtils.placeBlock(bestBlock.up(), Hand.MAIN_HAND)) {
Utils.sendMessage("#redFailed to place.");
ChatUtils.moduleError(this,"Failed to place.");
this.toggle();
return;
}
@@ -143,7 +142,7 @@ public class Auto32K extends Module {
mc.player.inventory.selectedSlot = hopperSlot;
if(bestBlock == null) return;
if (!PlayerUtils.placeBlock(bestBlock.add(x, 0, z), Hand.MAIN_HAND)) {
Utils.sendMessage("#redFailed to place.");
ChatUtils.moduleError(this,"Failed to place.");
this.toggle();
return;
}