aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-22 19:29:16 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-22 19:29:16 +0100
commitb75ba0014350e4cf6880e481a24398da906b978d (patch)
tree9a8a27e55c28f8075d4c6cd4dd3330bf463817db /src/main/java
parent9653e0d13514ed528df486741828267a8b5227f8 (diff)
downloadskyhanni-b75ba0014350e4cf6880e481a24398da906b978d.tar.gz
skyhanni-b75ba0014350e4cf6880e481a24398da906b978d.tar.bz2
skyhanni-b75ba0014350e4cf6880e481a24398da906b978d.zip
code cleanup
Diffstat (limited to 'src/main/java')
-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)