[FIX] binaryName fixes and optimize InjectClassAcceptor

This commit is contained in:
Gravit 2020-02-17 08:35:02 +07:00
parent f2c0815123
commit cfc140d47c
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 2 additions and 3 deletions

View file

@ -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) {

View file

@ -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 = "Вас нет в белом списке";