aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/SulphurSkitterBox.kt4
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)