Skip to content

Commit

Permalink
woopsies (#138)
Browse files Browse the repository at this point in the history
* woopsies

* maybe only cheater woopsies
  • Loading branch information
SubAt0m1c authored Nov 24, 2024
1 parent 88df9d8 commit d1ee580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import me.odinmain.utils.skyblock.Island
import me.odinmain.utils.skyblock.LocationUtils
import me.odinmain.utils.skyblock.dungeon.DungeonUtils
import me.odinmain.utils.skyblock.dungeon.M7Phases
import net.minecraft.entity.player.EntityPlayer
import net.minecraftforge.client.event.RenderPlayerEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import me.odinmain.features.settings.impl.BooleanSetting
import me.odinmain.features.settings.impl.NumberSetting
import me.odinmain.utils.skyblock.dungeon.DungeonUtils
import me.odinmain.utils.skyblock.dungeon.M7Phases
import net.minecraft.entity.player.EntityPlayer
import net.minecraftforge.client.event.RenderPlayerEvent
import net.minecraftforge.event.entity.living.LivingEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
Expand All @@ -31,7 +32,7 @@ object HidePlayers : Module(

@SubscribeEvent
fun onPosUpdate(event: LivingEvent.LivingUpdateEvent) {
if (mc.isSingleplayer) return
if (mc.isSingleplayer || event.entity !is EntityPlayer) return
val atDevs = (mc.thePlayer.getDistance(108.63, 120.0, 94.0) <= 1.8 || mc.thePlayer.getDistance(63.5, 127.0, 35.5) <= 1.8) && DungeonUtils.getF7Phase() == M7Phases.P3
if (event.entity.uniqueID.version() == 2 || !clickThrough || event.entity == mc.thePlayer || (!atDevs && onlyDevs)) return
if (event.entity.getDistanceToEntity(mc.thePlayer) <= distance || hideAll) {
Expand Down

0 comments on commit d1ee580

Please sign in to comment.