Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
[fix] AutoLog FakePlayer / Freecam check
Browse files Browse the repository at this point in the history
Signed-off-by: Dominika <[email protected]>
  • Loading branch information
5HT2 committed Jan 16, 2021
1 parent 5723e5a commit c880636
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import me.zeroeightsix.kami.manager.managers.FriendManager
import me.zeroeightsix.kami.module.Category
import me.zeroeightsix.kami.module.Module
import me.zeroeightsix.kami.module.modules.combat.AutoLog.Reasons.*
import me.zeroeightsix.kami.util.EntityUtils.isFakeOrSelf
import me.zeroeightsix.kami.util.combat.CombatUtils
import me.zeroeightsix.kami.util.items.allSlots
import me.zeroeightsix.kami.util.items.countItem
Expand All @@ -24,7 +25,6 @@ import net.minecraftforge.fml.common.gameevent.TickEvent
import org.kamiblue.commons.utils.MathUtils
import java.time.LocalTime


internal object AutoLog : Module(
name = "AutoLog",
description = "Automatically log when in danger or on low health",
Expand Down Expand Up @@ -90,7 +90,7 @@ internal object AutoLog : Module(
for (entity in world.loadedEntityList) {
if (entity !is EntityPlayer) continue
if (AntiBot.isBot(entity)) continue
if (entity == player) continue
if (entity.isFakeOrSelf) continue
if (player.getDistance(entity) > playerDistance) continue
if (!friends && FriendManager.isFriend(entity.name)) continue
log(PLAYER, entity.name)
Expand Down

0 comments on commit c880636

Please sign in to comment.