From cf07a5a379391b0ba1d83d1aa9b47ea13e064e1a Mon Sep 17 00:00:00 2001 From: fullwall Date: Fri, 8 May 2020 10:54:25 +0800 Subject: [PATCH] Fix jenkins compile issue --- .../java/net/citizensnpcs/nms/v1_15_R1/util/NMSImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 26a87f622..e5da40f7a 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 @@ -898,7 +898,7 @@ public class NMSImpl implements NMSBridge { @Override public void openHorseScreen(Tameable horse, Player equipper) { - EntityLiving handle = NMSImpl.getHandle((LivingEntity) horse); + EntityLiving handle = NMSImpl.getHandle(horse); EntityHuman equipperHandle = (EntityHuman) NMSImpl.getHandle(equipper); if (handle == null || equipperHandle == null) return; @@ -1142,14 +1142,15 @@ public class NMSImpl implements NMSBridge { if (SET_POSE == null) return; try { - SET_POSE.invoke(getHandle(ocelot), sitting ? EntityPose.CROUCHING : EntityPose.STANDING); + EntityPose pose = sitting ? EntityPose.CROUCHING : EntityPose.STANDING; + SET_POSE.invoke(getHandle(ocelot), pose); } catch (Throwable e) { } } @Override public void setSitting(Tameable tameable, boolean sitting) { - ((EntityTameableAnimal) NMSImpl.getHandle((LivingEntity) tameable)).setSitting(sitting); + ((EntityTameableAnimal) NMSImpl.getHandle(tameable)).setSitting(sitting); } @Override