From ee17925c5382e0ebb74c6da67f6ad052f39c1267 Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Thu, 9 May 2019 03:08:06 +0300 Subject: [PATCH] Deprecate method with magic value parameter --- .../disguise/disguisetypes/watchers/EndermanWatcher.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/EndermanWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/EndermanWatcher.java index 971e15aa..58ca207e 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/EndermanWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/EndermanWatcher.java @@ -32,10 +32,6 @@ public class EndermanWatcher extends InsentientWatcher { } public void setItemInMainHand(Material type) { - setItemInMainHand(type, 0); - } - - public void setItemInMainHand(Material type, int data) { Optional optional; if (type == null) @@ -46,6 +42,11 @@ public class EndermanWatcher extends InsentientWatcher { setData(MetaIndex.ENDERMAN_ITEM, optional); } + @Deprecated + public void setItemInMainHand(Material type, int data) { + setItemInMainHand(type); + } + public boolean isAggressive() { return getData(MetaIndex.ENDERMAN_AGRESSIVE); }