Updated to Java 25

This commit is contained in:
UnlegitDqrk
2026-03-01 12:50:46 +01:00
parent 95ea3d84b6
commit f087e87806
4 changed files with 8 additions and 6 deletions

View File

@@ -244,8 +244,8 @@ public class LuaScriptEngine extends AbstractScriptEngine implements ScriptEngin
case LuaValue.TSTRING: return luajValue.tojstring();
case LuaValue.TUSERDATA: return luajValue.checkuserdata(Object.class);
case LuaValue.TNUMBER: return luajValue.isinttype()?
luajValue.toint():
luajValue.todouble();
(Object) Integer.valueOf(luajValue.toint()):
(Object) Double.valueOf(luajValue.todouble());
default: return luajValue;
}
}