mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Refactor dispatch (now called HTTP) server (pt. 2)
This commit is contained in:
@@ -70,16 +70,14 @@ public class LuaSerializer implements Serializer {
|
||||
}
|
||||
|
||||
try {
|
||||
//noinspection ConfusingArgumentToVarargsMethod
|
||||
object = type.getDeclaredConstructor().newInstance(null);
|
||||
|
||||
LuaValue[] keys = table.keys();
|
||||
for (LuaValue k : keys) {
|
||||
try {
|
||||
Field field = object.getClass().getDeclaredField(k.checkjstring());
|
||||
if (field == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
field.setAccessible(true);
|
||||
LuaValue keyValue = table.get(k);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user