diff options
author | ingle <inglettronald@gmail.com> | 2022-10-15 11:18:19 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-10-15 11:18:19 -0500 |
commit | d2eb0ada9182f9cd507cd32b74cb72f62355acaa (patch) | |
tree | 5f9378e9f066f62b777bc7e8c308f7c9ac1f9b7c /src/main/kotlin/dulkirmod/features/BrokenHypeNotif.kt | |
parent | bb0a6799a67e3bed3f78948b2dc5711c668e1c4f (diff) | |
download | DulkirMod-d2eb0ada9182f9cd507cd32b74cb72f62355acaa.tar.gz DulkirMod-d2eb0ada9182f9cd507cd32b74cb72f62355acaa.tar.bz2 DulkirMod-d2eb0ada9182f9cd507cd32b74cb72f62355acaa.zip |
+ moar bestiary stuff and added WorldRenderUtils
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/BrokenHypeNotif.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/BrokenHypeNotif.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/dulkirmod/features/BrokenHypeNotif.kt b/src/main/kotlin/dulkirmod/features/BrokenHypeNotif.kt index b748f8b..d516fcf 100644 --- a/src/main/kotlin/dulkirmod/features/BrokenHypeNotif.kt +++ b/src/main/kotlin/dulkirmod/features/BrokenHypeNotif.kt @@ -8,14 +8,14 @@ import net.minecraft.item.ItemStack import net.minecraft.nbt.NBTTagCompound var oldKill = -1 -var oldChampionXp = -1 +var oldChampionXp = -1.0 var oldID = "" fun brokenHypeNotif() { if (!Config.notifyHype) return; var kill = -1 - var championXp = -1 + var championXp = -1.0 var id = "" if (mc.thePlayer == null) return @@ -34,7 +34,7 @@ fun brokenHypeNotif() { kill = ea.getInteger("stats_book") } if (ea.hasKey("champion_combat_xp", 99)) { - championXp = ea.getDouble("champion_combat_xp").toInt() + championXp = ea.getDouble("champion_combat_xp") } } } @@ -46,7 +46,7 @@ fun brokenHypeNotif() { // Check if this is a valid item for testing whether bestiary is broken. // That is, to be specific, check that it has champion and book of stats. // If it doesn't, don't reset because it can't be used anyway. - if (kill == -1 || championXp == -1) { + if (kill == -1 || championXp == -1.0) { return; } // If we get here this is a new item that is legitimate for testing bugged xp, in theory. |