aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt7
1 files changed, 7 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
new file mode 100644
index 0000000..da06c68
--- /dev/null
+++ b/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
@@ -0,0 +1,7 @@
+package moe.nea.notenoughupdates.util
+
+import net.minecraft.client.MinecraftClient
+
+object MC {
+ inline val player get() = MinecraftClient.getInstance().player
+}