Fix the plugin breaking on purpur, thanks Dyron!

This commit is contained in:
libraryaddict 2021-11-09 16:57:58 +13:00
parent 62839b5358
commit 743918aa2d

View File

@ -31,9 +31,14 @@ import java.util.List;
import java.util.Map; import java.util.Map;
public class DisguiseAPI { public class DisguiseAPI {
private static int selfDisguiseId = ReflectionManager.getNewEntityId(true); private final static int selfDisguiseId;
@Getter @Getter
private static int entityAttachmentId = ReflectionManager.getNewEntityId(true); private final static int entityAttachmentId;
static {
selfDisguiseId = ReflectionManager.getNewEntityId(true);
entityAttachmentId = ReflectionManager.getNewEntityId(true);
}
public static void addCustomDisguise(String disguiseName, String disguiseInfo) throws DisguiseParseException { public static void addCustomDisguise(String disguiseName, String disguiseInfo) throws DisguiseParseException {
// Dirty fix for anyone that somehow got this far with a . in the name, invalid yaml! // Dirty fix for anyone that somehow got this far with a . in the name, invalid yaml!