From 8deeef4f7d742ab729732439be67cb2cf37f1465 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Wed, 21 Sep 2022 16:18:34 +0200 Subject: [PATCH] Add allay to animals (#3788) add allay to animals --- .../src/main/java/com/plotsquared/bukkit/util/BukkitUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitUtil.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitUtil.java index 53123c895..fa174b6b5 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitUtil.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitUtil.java @@ -58,6 +58,7 @@ import org.bukkit.block.BlockFace; import org.bukkit.block.Sign; import org.bukkit.block.data.Directional; import org.bukkit.block.data.type.WallSign; +import org.bukkit.entity.Allay; import org.bukkit.entity.Ambient; import org.bukkit.entity.Animals; import org.bukkit.entity.AreaEffectCloud; @@ -437,6 +438,9 @@ public class BukkitUtil extends WorldUtil { allowedInterfaces.add(Animals.class); allowedInterfaces.add(WaterMob.class); allowedInterfaces.add(Ambient.class); + if (PlotSquared.platform().serverVersion()[1] >= 19) { + allowedInterfaces.add(Allay.class); + } } case "tameable" -> allowedInterfaces.add(Tameable.class); case "vehicle" -> allowedInterfaces.add(Vehicle.class);