File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/kotlin/gg/skytils/skytilsmod/features/impl/mining Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import gg.skytils.skytilsmod.events.impl.PacketEvent
3939import gg.skytils.skytilsmod.features.impl.handlers.MayorInfo
4040import gg.skytils.skytilsmod.utils.*
4141import gg.skytils.skytilsmod.utils.RenderUtil.highlight
42- import gg.skytils.skytilsmod.utils.graphics.SmartFontRenderer
4342import gg.skytils.skytilsmod.utils.graphics.colors.ColorFactory
4443import net.minecraft.client.entity.EntityOtherPlayerMP
4544import net.minecraft.client.renderer.GlStateManager
@@ -356,10 +355,11 @@ object MiningFeatures {
356355 @SubscribeEvent
357356 fun onRenderLivingPre (event : RenderLivingEvent .Pre <EntityLivingBase ?>) {
358357 if (! Utils .inSkyblock) return
359- if (Skytils .config.crystalHollowWaypoints && event.entity is EntityOtherPlayerMP && event.entity.name == " Team Treasurite" && event.entity.baseMaxHealth == if (MayorInfo .mayorPerks.contains(
360- " DOUBLE MOBS HP!!!"
361- )
362- ) 2_000_000.0 else 1_000_000.0
358+ if (Skytils .config.crystalHollowWaypoints &&
359+ event.entity is EntityOtherPlayerMP &&
360+ event.entity.name == " Team Treasurite" &&
361+ mc.thePlayer.canEntityBeSeen(event.entity) &&
362+ event.entity.baseMaxHealth == if (MayorInfo .mayorPerks.contains(" DOUBLE MOBS HP!!!" )) 2_000_000.0 else 1_000_000.0
363363 ) {
364364 waypoints[" Corleone" ] = event.entity.position
365365 }
You can’t perform that action at this time.
0 commit comments