From 5772af37fe1f63afd587e1306b5a62a94a71e44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Sun, 12 Apr 2020 04:46:51 +0200 Subject: [PATCH] Reclassify shulker as a hostile mob --- .../plotsquared/bukkit/util/BukkitUtil.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java index 38205b5e9..a834d5f25 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java @@ -73,8 +73,8 @@ import org.bukkit.entity.Explosive; import org.bukkit.entity.FallingBlock; import org.bukkit.entity.Firework; import org.bukkit.entity.Ghast; -import org.bukkit.entity.Golem; import org.bukkit.entity.Hanging; +import org.bukkit.entity.IronGolem; import org.bukkit.entity.Item; import org.bukkit.entity.LightningStrike; import org.bukkit.entity.Monster; @@ -82,7 +82,9 @@ import org.bukkit.entity.NPC; import org.bukkit.entity.Phantom; import org.bukkit.entity.Player; import org.bukkit.entity.Projectile; +import org.bukkit.entity.Shulker; import org.bukkit.entity.Slime; +import org.bukkit.entity.Snowman; import org.bukkit.entity.Tameable; import org.bukkit.entity.Vehicle; import org.bukkit.entity.WaterMob; @@ -575,7 +577,8 @@ public class BukkitUtil extends WorldUtil { final Collection> allowedInterfaces = new HashSet<>(); switch (category) { case "animal": { - allowedInterfaces.add(Golem.class); + allowedInterfaces.add(IronGolem.class); + allowedInterfaces.add(Snowman.class); allowedInterfaces.add(Animals.class); allowedInterfaces.add(WaterMob.class); allowedInterfaces.add(Ambient.class); @@ -587,6 +590,7 @@ public class BukkitUtil extends WorldUtil { allowedInterfaces.add(Vehicle.class); } break; case "hostile": { + allowedInterfaces.add(Shulker.class); allowedInterfaces.add(Monster.class); allowedInterfaces.add(Boss.class); allowedInterfaces.add(Slime.class);