aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features/BrokenHyp.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features/BrokenHyp.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/BrokenHyp.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/BrokenHyp.kt b/src/main/kotlin/com/dulkirfabric/features/BrokenHyp.kt
index dfae99b..85c1f7b 100644
--- a/src/main/kotlin/com/dulkirfabric/features/BrokenHyp.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/BrokenHyp.kt
@@ -31,6 +31,7 @@ object BrokenHyp {
// get info about held item
val tag = stack.nbt ?: return
id = tag.getCompound("ExtraAttributes")?.getString("id") ?: ""
+
kill = tag.getCompound("ExtraAttributes")?.getInt("stats_book") ?: -1
championXp = tag.getCompound("ExtraAttributes")?.getDouble("champion_combat_xp") ?: -1.0