aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-07 12:22:36 +0200
committernea <nea@nea.moe>2023-05-08 00:17:34 +0200
commit942dd629efbf12183b1c5f5a966c36d4b0647a6b (patch)
tree407e8d2cdcfefa77673c768e5126857a86ddb89a /src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
parent229f724ef4a0a4cbc426f31e27f9a57e9b1307c9 (diff)
downloadfirmament-942dd629efbf12183b1c5f5a966c36d4b0647a6b.tar.gz
firmament-942dd629efbf12183b1c5f5a966c36d4b0647a6b.tar.bz2
firmament-942dd629efbf12183b1c5f5a966c36d4b0647a6b.zip
Add fishing particle highlighter
Currently does not work when sneaking or when the bobber moves too much, since the position desyncs with the server
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt b/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
index 36aa726..956a330 100644
--- a/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
+++ b/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
@@ -6,6 +6,7 @@ import net.minecraft.util.math.BlockPos
object MC {
inline val player get() = MinecraftClient.getInstance().player
+ inline val world get() = MinecraftClient.getInstance().world
}
val Coordinate.blockPos: BlockPos