diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-23 00:31:57 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-23 00:31:57 +0200 |
commit | bd7c0eb2cdf4825ce4fa40482de9693d24e27a70 (patch) | |
tree | d614cb3e80475c666e02cc61807348a4b9b4d7dc /src/main/java/at/hannibal2/skyhanni/data | |
parent | 6ef62c0a5c2f23befeac58451ff7a41cb0ec4678 (diff) | |
download | skyhanni-bd7c0eb2cdf4825ce4fa40482de9693d24e27a70.tar.gz skyhanni-bd7c0eb2cdf4825ce4fa40482de9693d24e27a70.tar.bz2 skyhanni-bd7c0eb2cdf4825ce4fa40482de9693d24e27a70.zip |
Hopefully fixed derpy problems with trevor trapper, arachne, arachne keeper and zealots
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/EntityData.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/EntityData.kt b/src/main/java/at/hannibal2/skyhanni/data/EntityData.kt index dad4a1bf3..40cada194 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/EntityData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/EntityData.kt @@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.data import at.hannibal2.skyhanni.events.* import at.hannibal2.skyhanni.utils.EntityUtils import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth +import at.hannibal2.skyhanni.utils.LorenzUtils.derpy import net.minecraft.client.Minecraft import net.minecraft.client.entity.EntityOtherPlayerMP import net.minecraft.client.entity.EntityPlayerSP @@ -26,7 +27,7 @@ class EntityData { val oldMaxHealth = maxHealthMap.getOrDefault(entity, -1) if (oldMaxHealth != maxHealth) { maxHealthMap[entity] = maxHealth - EntityMaxHealthUpdateEvent(entity, maxHealth).postAndCatch() + EntityMaxHealthUpdateEvent(entity, maxHealth.derpy()).postAndCatch() } } } @@ -70,7 +71,7 @@ class EntityData { } if (entity is EntityLivingBase) { - EntityHealthUpdateEvent(entity, health).postAndCatch() + EntityHealthUpdateEvent(entity, health.derpy()).postAndCatch() } } } |