From f572792c5b813bfb75c37256e5b325e3a80866ee Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 17 May 2020 09:13:09 +1200 Subject: [PATCH] Added nmsaddedin to setEnraged --- .../disguise/disguisetypes/watchers/InsentientWatcher.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java index 00a18896..7f814b9d 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java @@ -2,6 +2,8 @@ package me.libraryaddict.disguise.disguisetypes.watchers; import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.MetaIndex; +import me.libraryaddict.disguise.utilities.reflection.NmsAddedIn; +import me.libraryaddict.disguise.utilities.reflection.NmsVersion; import org.bukkit.inventory.MainHand; public class InsentientWatcher extends LivingWatcher { @@ -41,10 +43,12 @@ public class InsentientWatcher extends LivingWatcher { return (getData(MetaIndex.INSENTIENT_META) & i) != 0; } + @NmsAddedIn(val = NmsVersion.v1_14) public boolean isEnraged() { return getInsentientFlag(4); } + @NmsAddedIn(val = NmsVersion.v1_14) public void setEnraged(boolean enraged) { setInsentientFlag(4, enraged); sendData(MetaIndex.INSENTIENT_META);