diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt | 4 |
1 files 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) |