From b75ba0014350e4cf6880e481a24398da906b978d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 22 Jan 2024 19:29:16 +0100 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt index 3d4beaae2..e489e357f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt @@ -45,8 +45,8 @@ class SulphurSkitterBox { val to = location.add(20, 20, 20).toBlockPos() spongeBlocks = BlockPos.getAllInBox(from, to).filter { - val b = it.toLorenzVec().getBlockAt() - b == Blocks.sponge && it.toLorenzVec().distanceToPlayer() <= 15 + val loc = it.toLorenzVec() + loc.getBlockAt() == Blocks.sponge && loc.distanceToPlayer() <= 15 }.filter { val pos1 = it.add(-radius, -radius, -radius) val pos2 = it.add(radius, radius, radius) -- cgit