numeric literal fix
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
function submit(text)
|
||||
function setup_variables()
|
||||
local x,y,z = player.get_pos(0)
|
||||
console.set('pos.x', x)
|
||||
console.set('pos.y', y)
|
||||
console.set('pos.z', z)
|
||||
end
|
||||
|
||||
function submit(text)
|
||||
setup_variables()
|
||||
|
||||
local status, result = pcall(function() return console.execute(text) end)
|
||||
if result ~= nil then
|
||||
document.log.text = document.log.text..tostring(result)..'\n'
|
||||
|
||||
Reference in New Issue
Block a user