Revert disguise entity id change

This commit is contained in:
libraryaddict 2017-08-10 07:12:30 +12:00
parent d6e24ac552
commit 6d27f17399

View File

@ -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<String, Disguise> entry = DisguiseConfig.getCustomDisguise(disguiseName);
@ -374,7 +361,7 @@ public class DisguiseAPI {
}
public static int getSelfDisguiseId() {
return selfDisguiseId;
return -10;
}
/**