From 89aa721988c8c9c5e67b853326f547daa200fd6b Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 13 Aug 2017 17:27:07 -0700 Subject: [PATCH] Added debug for villagers --- .../askyblock/listeners/EntityLimits.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/com/wasteofplastic/askyblock/listeners/EntityLimits.java b/src/com/wasteofplastic/askyblock/listeners/EntityLimits.java index 880809eaa..9ab7ad050 100644 --- a/src/com/wasteofplastic/askyblock/listeners/EntityLimits.java +++ b/src/com/wasteofplastic/askyblock/listeners/EntityLimits.java @@ -40,6 +40,7 @@ public class EntityLimits implements Listener { private static final boolean DEBUG = false; private static final boolean DEBUG2 = false; + private static final boolean DEBUG3 = false; private ASkyBlock plugin; /** @@ -470,15 +471,15 @@ public void onTreeGrow(final StructureGrowEvent e) { @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public void onVillagerSpawn(final CreatureSpawnEvent e) { - if (DEBUG2) { - plugin.getLogger().info("Villager spawn event! " + e.getEventName()); - plugin.getLogger().info(e.getSpawnReason().toString()); - plugin.getLogger().info(e.getEntityType().toString()); - } // If not an villager if (!(e.getEntity() instanceof Villager)) { return; } + if (DEBUG3) { + plugin.getLogger().info("Villager spawn event! " + e.getEventName()); + plugin.getLogger().info("Reason:" + e.getSpawnReason().toString()); + plugin.getLogger().info("Entity:" + e.getEntityType().toString()); + } // Only cover overworld if (!e.getEntity().getWorld().equals(ASkyBlock.getIslandWorld())) { return;