mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
.
This commit is contained in:
parent
e05b9bff5d
commit
987d6b6d3f
3 changed files with 21 additions and 12 deletions
|
|
@ -45,8 +45,8 @@ function submit(text)
|
|||
setup_variables()
|
||||
|
||||
document.log.caret = -1
|
||||
local status, result = pcall(function() return console.execute(text) end)
|
||||
if result ~= nil then
|
||||
local status, result = pcall(console.execute, text)
|
||||
if result then
|
||||
console.log(result)
|
||||
end
|
||||
document.prompt.text = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue