From ebcb5e27accd22135c70a7c08fb3e4f2ffcd79eb Mon Sep 17 00:00:00 2001 From: Gibstick Date: Fri, 26 Jul 2013 21:48:19 -0400 Subject: [PATCH] prevent horses (until 1.6.2 stable) --- src/ca/gibstick/discosheep/DiscoSheep.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ca/gibstick/discosheep/DiscoSheep.java b/src/ca/gibstick/discosheep/DiscoSheep.java index 71cb9d3..b69ae57 100644 --- a/src/ca/gibstick/discosheep/DiscoSheep.java +++ b/src/ca/gibstick/discosheep/DiscoSheep.java @@ -48,9 +48,13 @@ public final class DiscoSheep extends JavaPlugin { // create a default hashmap of for all living entities // this creates a default config entry with all living entites present // except for bosses, pigzombie (NPE for some reason) + // and horses (until 1.6.2 stable) for (EntityType ent : EntityType.values()) { - if (ent.isAlive() && !ent.equals(EntityType.ENDER_DRAGON) && !ent.equals(EntityType.WITHER) - && !ent.equals(EntityType.PIG_ZOMBIE)) { + if (ent.isAlive() + && !ent.equals(EntityType.ENDER_DRAGON) + && !ent.equals(EntityType.WITHER) + && !ent.equals(EntityType.PIG_ZOMBIE) + && !ent.equals(EntityType.HORSE)) { tempMap.put(ent.toString(), 0); } }