mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-18 09:54:59 +01:00
optimized the Lua func binding so that the script will not eval again
This commit is contained in:
@@ -87,6 +87,9 @@ public class LuaSerializer implements Serializer {
|
||||
|
||||
object = (T) constructorCache.get(type).newInstance();
|
||||
|
||||
if(table == null){
|
||||
return object;
|
||||
}
|
||||
LuaValue[] keys = table.keys();
|
||||
for (LuaValue k : keys) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user