aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-22 20:43:10 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-22 20:43:10 +0100
commiteffef951faef613c4cee852f7515810641b4e1f0 (patch)
treebd6320e0675730199037ce1a695ce2561cf35f17 /src/main/java/at/hannibal2/skyhanni
parentcef4e16de581c9165008c5e00019cdce4ccf68ac (diff)
downloadskyhanni-effef951faef613c4cee852f7515810641b4e1f0.tar.gz
skyhanni-effef951faef613c4cee852f7515810641b4e1f0.tar.bz2
skyhanni-effef951faef613c4cee852f7515810641b4e1f0.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/area/dreadfarm/RiftWiltedBerberisHelper.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/dreadfarm/RiftWiltedBerberisHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/dreadfarm/RiftWiltedBerberisHelper.kt
index d6764f199..0ff9e0c0f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/dreadfarm/RiftWiltedBerberisHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/dreadfarm/RiftWiltedBerberisHelper.kt
@@ -16,6 +16,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText
import at.hannibal2.skyhanni.utils.RenderUtils.drawFilledBoundingBox_nea
import at.hannibal2.skyhanni.utils.RenderUtils.expandBlock
import net.minecraft.client.Minecraft
+import net.minecraft.init.Blocks
import net.minecraft.util.EnumParticleTypes
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import java.awt.Color
@@ -43,9 +44,9 @@ class RiftWiltedBerberisHelper {
hasFarmingToolInHand = InventoryUtils.getItemInHand()?.getInternalName() == RiftAPI.farmingTool
if (Minecraft.getMinecraft().thePlayer.onGround) {
- val block = LocationUtils.playerLocation().add(y = -1).getBlockAt().toString()
+ val block = LocationUtils.playerLocation().add(y = -1).getBlockAt()
val currentY = LocationUtils.playerLocation().y
- isOnFarmland = block == "Block{minecraft:farmland}" && (currentY % 1 == 0.0)
+ isOnFarmland = block == Blocks.farmland && (currentY % 1 == 0.0)
}
}