update to 1.18.2?
This commit is contained in:
@@ -157,7 +157,6 @@ public class Auto32K extends Module {
|
||||
mc.interactionManager.interactBlock(mc.player, mc.world, Hand.MAIN_HAND, new BlockHitResult(mc.player.getPos(), mc.player.getHorizontalFacing().getOpposite(), bestBlock.up(), false));
|
||||
phase += 1;
|
||||
}else if (phase == 4 && mc.currentScreen instanceof Generic3x3ContainerScreen) {
|
||||
mc.player.getSpeed();
|
||||
InvUtils.move().from(shulkerSlot.slot()).toId(4);
|
||||
phase += 1;
|
||||
}else if (phase == 5 && mc.currentScreen instanceof Generic3x3ContainerScreen) {
|
||||
|
||||
@@ -199,7 +199,7 @@ public class AutoPot extends Module {
|
||||
if (drinking) event.target = null;
|
||||
}
|
||||
private void setPressed(boolean pressed) {
|
||||
mc.options.keyUse.setPressed(pressed);
|
||||
mc.options.useKey.setPressed(pressed);
|
||||
}
|
||||
private void startDrinking() {
|
||||
prevSlot = mc.player.getInventory().selectedSlot;
|
||||
|
||||
@@ -120,7 +120,7 @@ public class BoatGlitch extends Module {
|
||||
}
|
||||
@EventHandler
|
||||
private void onKey(KeyEvent event) {
|
||||
if (event.key == mc.options.keySneak.getDefaultKey().getCode() && event.action == KeyAction.Press) {
|
||||
if (event.key == mc.options.sneakKey.getDefaultKey().getCode() && event.action == KeyAction.Press) {
|
||||
if (mc.player.getVehicle() != null && mc.player.getVehicle().getType().equals(EntityType.BOAT)) {
|
||||
dontPhase = false;
|
||||
boat = null;
|
||||
|
||||
@@ -126,8 +126,8 @@ public class BoatPhase extends Module {
|
||||
double velZ = vel.z;
|
||||
|
||||
if (verticalControl.get()) {
|
||||
if (mc.options.keyJump.isPressed()) velY += verticalSpeed.get() / 20;
|
||||
if (mc.options.keySprint.isPressed()) velY -= verticalSpeed.get() / 20;
|
||||
if (mc.options.jumpKey.isPressed()) velY += verticalSpeed.get() / 20;
|
||||
if (mc.options.sprintKey.isPressed()) velY -= verticalSpeed.get() / 20;
|
||||
else if (fall.get()) velY -= fallSpeed.get() / 20;
|
||||
} else if (fall.get()) velY -= fallSpeed.get() / 20;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.Heightmap;
|
||||
import net.minecraft.world.chunk.ChunkStatus;
|
||||
import net.minecraft.world.gen.random.ChunkRandom;
|
||||
@@ -275,7 +276,8 @@ public class OreSim extends Module {
|
||||
|
||||
long populationSeed = random.setPopulationSeed(worldSeed.seed, chunkX, chunkZ);
|
||||
|
||||
Identifier id = world.getRegistryManager().get(Registry.BIOME_KEY).getId(world.getBiomeAccess().getBiomeForNoiseGen(new BlockPos(chunkX, 0, chunkZ)));
|
||||
var optional = world.getBiomeAccess().getBiomeForNoiseGen(new BlockPos(chunkX, 0, chunkZ)).getKeyOrValue();
|
||||
Identifier id = (optional.right().isPresent()) ? world.getRegistryManager().get(Registry.BIOME_KEY).getId(optional.right().get()) : optional.left().get().getValue();
|
||||
if (id == null) {
|
||||
error("Something went wrong, you may have some mods that mess with world generation");
|
||||
toggle();
|
||||
|
||||
@@ -23,7 +23,6 @@ import net.minecraft.client.render.entity.LivingEntityRenderer;
|
||||
import net.minecraft.client.render.entity.PlayerEntityRenderer;
|
||||
import net.minecraft.client.render.entity.model.PlayerEntityModel;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.util.math.Vec3f;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.*;
|
||||
|
||||
Reference in New Issue
Block a user