aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/mc/PlayerUtil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/mc/PlayerUtil.kt')
-rw-r--r--src/main/kotlin/util/mc/PlayerUtil.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/util/mc/PlayerUtil.kt b/src/main/kotlin/util/mc/PlayerUtil.kt
index 53ef1f4..7c21987 100644
--- a/src/main/kotlin/util/mc/PlayerUtil.kt
+++ b/src/main/kotlin/util/mc/PlayerUtil.kt
@@ -1,7 +1,7 @@
package moe.nea.firmament.util.mc
-import net.minecraft.entity.EquipmentSlot
-import net.minecraft.entity.player.PlayerEntity
+import net.minecraft.world.entity.EquipmentSlot
+import net.minecraft.world.entity.player.Player
-val PlayerEntity.mainHandStack get() = this.getEquippedStack(EquipmentSlot.MAINHAND)
+val Player.mainHandStack get() = this.getItemBySlot(EquipmentSlot.MAINHAND)