Skip to content

Commit

Permalink
Added debug for villagers
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 14, 2017
1 parent 0f5bdd2 commit 89aa721
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/com/wasteofplastic/askyblock/listeners/EntityLimits.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 89aa721

Please sign in to comment.