Skip to content

Commit

Permalink
remove: remove leftover bleeds
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Jan 16, 2024
1 parent ce26682 commit c415d17
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
7 changes: 0 additions & 7 deletions src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1067,13 +1067,6 @@ object Config : Vigilant(
)
var trackGaiaHits = false

/* @Property(
type = PropertyType.SWITCH, name = "Hide Leftover Bleeds",
description = "Removes the bleeds text left behind when a player dies to a Minotaur.",
category = "Events", subcategory = "Mythological"
)*/
var removeLeftOverBleeds = false

@Property(
type = PropertyType.SWITCH, name = "Track Mythological Creatures",
description = "Tracks and saves drops from Mythological Creatures.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,6 @@ object MayorDiana {
}
}

@SubscribeEvent
fun onCheckRender(event: CheckRenderEntityEvent<*>) {
if (!Utils.inSkyblock) return
val entity = event.entity
if (Skytils.config.removeLeftOverBleeds && mc.theWorld != null && entity is EntityArmorStand && entity.hasCustomName() && entity.displayName.formattedText.startsWith(
"§c☣ §fBleeds: §c"
) && entity.ticksExisted >= 20
) {
val aabb = entity.entityBoundingBox.expand(2.0, 5.0, 2.0)
if (mc.theWorld.loadedEntityList.none {
it.displayName.formattedText.endsWith("§c❤") && it.displayName.formattedText.contains(
"Minotaur §"
) && it.entityBoundingBox.intersectsWith(aabb)
}) {
event.isCanceled = true
mc.theWorld.removeEntity(entity)
}
}
}

@SubscribeEvent
fun onPostRenderEntity(event: RenderLivingEvent.Post<*>) {
if (!Utils.inSkyblock) return
Expand Down

0 comments on commit c415d17

Please sign in to comment.