From 93a043f0f9c763f6a36de7e02ba57077f615a5a9 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:17:03 +0200 Subject: Added loggers for enderman slayer beacon detections --- .../at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt index 996f46ee4..970a7f1dc 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt @@ -26,6 +26,7 @@ class EndermanSlayerBeacon { private val endermenWithBeacons = mutableListOf() private val flyingBeacons = mutableListOf() private val sittingBeacon = mutableListOf() + private val logger = LorenzLogger("slayer/voildgloom_beacon") @SubscribeEvent fun onCheckRender(event: CheckRenderEntityEvent<*>) { @@ -35,6 +36,7 @@ class EndermanSlayerBeacon { if (entity is EntityEnderman) { if (hasBeaconInHand(entity) && canSee(LocationUtils.playerEyeLocation(), entity.getLorenzVec())) { endermenWithBeacons.add(entity) + logger.log("Added enderman with beacon at ${entity.getLorenzVec()}") } } @@ -42,6 +44,7 @@ class EndermanSlayerBeacon { val stack = entity.inventory[4] ?: return if (stack.name == "Beacon" && canSee(LocationUtils.playerEyeLocation(), entity.getLorenzVec())) { flyingBeacons.add(entity) + logger.log("Added flying beacons at ${entity.getLorenzVec()}") } } } @@ -90,9 +93,11 @@ class EndermanSlayerBeacon { if (armorStand != null) { flyingBeacons.remove(armorStand) sittingBeacon.add(location) + logger.log("Replaced flying beacon with sitting beacon at $location") } } else { if (location in sittingBeacon) { + logger.log("Removed sitting beacon $location") sittingBeacon.remove(location) } } @@ -113,5 +118,6 @@ class EndermanSlayerBeacon { endermenWithBeacons.clear() flyingBeacons.clear() sittingBeacon.clear() + logger.log("Reset everything (world change)") } } \ No newline at end of file -- cgit