From 6d27f1739969329e5df02d64fb46d6d76e849df0 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 10 Aug 2017 07:12:30 +1200 Subject: [PATCH] Revert disguise entity id change --- src/me/libraryaddict/disguise/DisguiseAPI.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseAPI.java b/src/me/libraryaddict/disguise/DisguiseAPI.java index c86ef023..eb35c12a 100644 --- a/src/me/libraryaddict/disguise/DisguiseAPI.java +++ b/src/me/libraryaddict/disguise/DisguiseAPI.java @@ -36,19 +36,6 @@ import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.ReflectionManager; public class DisguiseAPI { - private static int selfDisguiseId; - - static { - try { - Field field = ReflectionManager.getNmsField("Entity", "entityCount"); - selfDisguiseId = field.getInt(null); - field.set(null, selfDisguiseId + 1); - } - catch (IllegalAccessException e) { - e.printStackTrace(); - } - } - public static Disguise getCustomDisguise(String disguiseName) { Map.Entry entry = DisguiseConfig.getCustomDisguise(disguiseName); @@ -374,7 +361,7 @@ public class DisguiseAPI { } public static int getSelfDisguiseId() { - return selfDisguiseId; + return -10; } /**