aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/HideDeadEntities.kt74
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