mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] binaryName fixes and optimize InjectClassAcceptor
This commit is contained in:
parent
f2c0815123
commit
cfc140d47c
2 changed files with 2 additions and 3 deletions
|
@ -136,11 +136,11 @@ public void visit(final String name, final Object value) {
|
|||
});
|
||||
serializers.put(Character.class, (Serializer<Character>) e -> {
|
||||
InsnList ret = new InsnList();
|
||||
ret.add(NodeUtils.push((int) e.charValue()));
|
||||
ret.add(NodeUtils.push((int) e));
|
||||
ret.add(new InsnNode(Opcodes.I2C));
|
||||
return ret;
|
||||
});
|
||||
serializers.put(Enum.class, (Serializer<Enum>) value -> NodeUtils.makeValueEnumGetter(value));
|
||||
serializers.put(Enum.class, (Serializer<Enum>) NodeUtils::makeValueEnumGetter);
|
||||
}
|
||||
|
||||
private static Serializer<?> serializerClass(int opcode) {
|
||||
|
|
|
@ -284,7 +284,6 @@ public static LaunchServerConfig getDefault(LaunchServer.LaunchServerEnv env) {
|
|||
a.displayName = "Default";
|
||||
newConfig.auth.put("std", a);
|
||||
newConfig.protectHandler = new StdProtectHandler();
|
||||
if (env.equals(LaunchServer.LaunchServerEnv.TEST))
|
||||
newConfig.binaryName = "Launcher";
|
||||
newConfig.whitelistRejectString = "Вас нет в белом списке";
|
||||
|
||||
|
|
Loading…
Reference in a new issue