mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Revert disguise entity id change
This commit is contained in:
parent
d6e24ac552
commit
6d27f17399
@ -36,19 +36,6 @@ import me.libraryaddict.disguise.utilities.DisguiseUtilities;
|
|||||||
import me.libraryaddict.disguise.utilities.ReflectionManager;
|
import me.libraryaddict.disguise.utilities.ReflectionManager;
|
||||||
|
|
||||||
public class DisguiseAPI {
|
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) {
|
public static Disguise getCustomDisguise(String disguiseName) {
|
||||||
Map.Entry<String, Disguise> entry = DisguiseConfig.getCustomDisguise(disguiseName);
|
Map.Entry<String, Disguise> entry = DisguiseConfig.getCustomDisguise(disguiseName);
|
||||||
|
|
||||||
@ -374,7 +361,7 @@ public class DisguiseAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int getSelfDisguiseId() {
|
public static int getSelfDisguiseId() {
|
||||||
return selfDisguiseId;
|
return -10;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user