diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt index d81b8108..6cd850c3 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt @@ -28,27 +28,6 @@ import java.util.zip.Inflater private val LOGGER = LogManager.getLogger() fun main() { - if (true) { - val lua = LuaState() - - Thread.sleep(4_000L) - - lua.load(File("test.lua").readText()) - lua.call() - - lua.loadGlobal("printTable") - lua.push(GsonBuilder().create().fromJson(File("playerdata.json").reader(), JsonElement::class.java)) - lua.call(1) - - lua.loadGlobal("test") - lua.push("s".repeat(10)) - lua.call(1) - - Thread.sleep(4_000L) - - return - } - val starbound = Starbound() LOGGER.info("Running LWJGL ${Version.getVersion()}") diff --git a/test.lua b/test.lua deleted file mode 100644 index b93ee9aa..00000000 --- a/test.lua +++ /dev/null @@ -1,24 +0,0 @@ - -function printTable(input) - if type(input) ~= 'table' then - print(input) - return - end - - for k, v in pairs(input) do - if type(v) == 'table' then - print(k .. ' = ') - printTable(v) - else - print(k .. ' = ', v, type(v)) - end - end -end - -function test(...) - print('Called test with ' .. select('#', ...) .. ' arguments: ' .. #table.concat({...}, ', ')) -end - -print(collectgarbage('count') * 1024) ---printTable(select(1, ...)) ---print('hello!')