From 7c203235c4b4a8da511f299c1fb97ab4950951aa Mon Sep 17 00:00:00 2001 From: fullwall Date: Fri, 8 May 2020 11:08:47 +0800 Subject: [PATCH] Add disambiguation method for compiling with latest spigot --- .../main/java/net/citizensnpcs/nms/v1_15_R1/util/NMSImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v1_15_R1/src/main/java/net/citizensnpcs/nms/v1_15_R1/util/NMSImpl.java b/v1_15_R1/src/main/java/net/citizensnpcs/nms/v1_15_R1/util/NMSImpl.java index e5da40f7a..5807d40a0 100644 --- a/v1_15_R1/src/main/java/net/citizensnpcs/nms/v1_15_R1/util/NMSImpl.java +++ b/v1_15_R1/src/main/java/net/citizensnpcs/nms/v1_15_R1/util/NMSImpl.java @@ -1614,6 +1614,10 @@ public class NMSImpl implements NMSBridge { return ((CraftEntity) entity).getHandle(); } + private static EntityLiving getHandle(Tameable entity) { + return (EntityLiving) NMSImpl.getHandle((org.bukkit.entity.Entity) entity); + } + public static float getHeadYaw(EntityLiving handle) { return handle.getHeadRotation(); }