diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 16:27:19 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 16:27:19 +0100 |
commit | 9639b0927aabbc7f23e62a603e1ffee8832235f8 (patch) | |
tree | c6f0880b2ad8d29c1ab3547862c39d1cbcf86a0f /src/main/java/at | |
parent | feef78a4b554a3142167db10d7e23bf95e3676bc (diff) | |
download | skyhanni-9639b0927aabbc7f23e62a603e1ffee8832235f8.tar.gz skyhanni-9639b0927aabbc7f23e62a603e1ffee8832235f8.tar.bz2 skyhanni-9639b0927aabbc7f23e62a603e1ffee8832235f8.zip |
Removed hide dead entities bc its already in skytils and working.
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/HideDeadEntities.kt | 74 |
2 files changed, 38 insertions, 37 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java index 78644dad0..c960b330d 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java @@ -196,7 +196,6 @@ public class SkyHanniMod { loadModule(new BingoCardDisplay()); loadModule(new BingoNextStepHelper()); loadModule(new MinionCraftHelper()); - loadModule(new HideDeadEntities()); loadModule(new TpsCounter()); loadModule(new ParticleHider()); loadModule(new MiscFeatures()); diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideDeadEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideDeadEntities.kt index e4a29513f..6bca8e97d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideDeadEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideDeadEntities.kt @@ -1,36 +1,38 @@ -package at.hannibal2.skyhanni.features.misc - -import at.hannibal2.skyhanni.events.CheckRenderEntityEvent -import at.hannibal2.skyhanni.events.EntityHealthUpdateEvent -import at.hannibal2.skyhanni.utils.LorenzUtils -import net.minecraftforge.fml.common.eventhandler.SubscribeEvent - -class HideDeadEntities { - private val hiddenEntities = mutableListOf<Int>() - - @SubscribeEvent - fun onEntityHealthUpdate(event: EntityHealthUpdateEvent) { - val entityId = event.entity.entityId - - if (event.health <= 0) { - if (!hiddenEntities.contains(entityId)) { - hiddenEntities.add(entityId) -// LorenzUtils.chat("died: ${event.entity.name}") - } - } else { - if (hiddenEntities.contains(entityId)) { - hiddenEntities.remove(entityId) - LorenzUtils.debug("respawned: ${event.entity.name}") - } - } - } - - @SubscribeEvent - fun onCheckRender(event: CheckRenderEntityEvent<*>) { - if (!LorenzUtils.inSkyBlock) return - - if (hiddenEntities.contains(event.entity.entityId)) { - event.isCanceled = true - } - } -}
\ No newline at end of file +//package at.hannibal2.skyhanni.features.misc +// +//import at.hannibal2.skyhanni.events.CheckRenderEntityEvent +//import at.hannibal2.skyhanni.events.EntityHealthUpdateEvent +//import at.hannibal2.skyhanni.utils.LorenzUtils +//import net.minecraftforge.fml.common.eventhandler.SubscribeEvent +// +// +//// Skytils feature does work already. +// +//class HideDeadEntities { +// private val hiddenEntities = mutableListOf<Int>() +// +// @SubscribeEvent +// fun onEntityHealthUpdate(event: EntityHealthUpdateEvent) { +// val entityId = event.entity.entityId +// +// if (event.health <= 0) { +// if (!hiddenEntities.contains(entityId)) { +// hiddenEntities.add(entityId) +// } +// } else { +// if (hiddenEntities.contains(entityId)) { +// hiddenEntities.remove(entityId) +// LorenzUtils.debug("respawned: ${event.entity.name}") +// } +// } +// } +// +// @SubscribeEvent +// fun onCheckRender(event: CheckRenderEntityEvent<*>) { +// if (!LorenzUtils.inSkyBlock) return +// +//// if (hiddenEntities.contains(event.entity.entityId)) { +//// event.isCanceled = true +//// } +// } +//}
\ No newline at end of file |