Skip to content

Commit

Permalink
monke
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimnyCat committed Sep 18, 2021
1 parent 41fd388 commit f629b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/bleach/hack/module/mods/BedBomb.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void allahuAkbar(EventWorldRender worldRender) {
if ((getSetting(1).asToggle().state && dimensionCheck()) && (checkAttackRange() || !getSetting(2).asToggle().state)
&& !mc.player.isSneaking()) {
for (BlockEntity e : mc.world.blockEntities) {
if (e instanceof BedBlockEntity && e.getPos().getSquaredDistance(mc.player.getPos(), true) < 30) {
if (e instanceof BedBlockEntity && Math.sqrt(e.getPos().getSquaredDistance(mc.player.getPos(), true)) < 5) {
BlockPos pos = e.getPos();
Vec3d posv3d = new Vec3d(pos.getX() + 0.5D, pos.getY(), pos.getZ() + 0.5D);
mc.interactionManager.interactBlock(mc.player, mc.world, Hand.MAIN_HAND, new BlockHitResult(posv3d, Direction.UP, pos, false));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/bleach/hack/module/mods/CrystalAura.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void worldRender(EventWorldRender e) {
}

private boolean place(BlockPos pos) {
if (pos.getSquaredDistance(mc.player.getPos(), true) >= getSetting(1).asSlider().getValue() * 6) return false;
if (Math.sqrt(pos.getSquaredDistance(mc.player.getPos(), true)) >= getSetting(1).asSlider().getValue()) return false;
Vec3d posv3d = new Vec3d(pos.getX() + 0.5D, pos.getY(), pos.getZ() + 0.5D);
if (getSetting(10).asRotate().state) WorldUtils.facePosAuto(pos.getX(), pos.getY(), pos.getZ(),
getSetting(10).asRotate());
Expand Down

0 comments on commit f629b84

Please sign in to comment.