Skip to content

Commit

Permalink
Fix auto dimension in NoFall overriding every item instead of just th…
Browse files Browse the repository at this point in the history
…e bucket and removed the setting, making it always enabled (#4759)
  • Loading branch information
AnandBhasme committed Jul 19, 2024
1 parent c7d2f7f commit fdf8e1c
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import meteordevelopment.meteorclient.utils.player.PlayerUtils;
import meteordevelopment.meteorclient.utils.player.Rotations;
import meteordevelopment.meteorclient.utils.world.BlockUtils;
import meteordevelopment.meteorclient.utils.world.Dimension;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
Expand Down Expand Up @@ -74,14 +73,6 @@ public class NoFall extends Module {
.build()
);

private final Setting<Boolean> autoDimension = sgGeneral.add(new BoolSetting.Builder()
.name("auto-dimension")
.description("Use powder snow bucket in nether.")
.defaultValue(true)
.visible(() -> mode.get() == Mode.Place)
.build()
);

private final Setting<Boolean> antiBounce = sgGeneral.add(new BoolSetting.Builder()
.name("anti-bounce")
.description("Disables bouncing on slime-block and bed upon landing.")
Expand Down Expand Up @@ -157,7 +148,7 @@ private void onTick(TickEvent.Pre event) {

// Bucket mode
else if (mode.get() == Mode.Place) {
PlacedItem placedItem1 = autoDimension.get() && PlayerUtils.getDimension() == Dimension.Nether ? PlacedItem.PowderSnow : placedItem.get();
PlacedItem placedItem1 = mc.world.getDimension().ultrawarm() && placedItem.get() == PlacedItem.Bucket ? PlacedItem.PowderSnow : placedItem.get();
if (mc.player.fallDistance > 3 && !EntityUtils.isAboveWater(mc.player)) {
Item item = placedItem1.item;

Expand Down

0 comments on commit fdf8e1c

Please sign in to comment.