turtle/tlang: log prints
This commit is contained in:
parent
632eb7e286
commit
6e8c1fb739
@ -293,7 +293,9 @@ function builtins.print(state)
|
||||
local value = statepop(state)
|
||||
|
||||
if minetest then
|
||||
minetest.display_chat_message("Tlang: " .. tostring(value.value))
|
||||
local message = "[tlang] " .. tostring(value.value)
|
||||
minetest.display_chat_message(message)
|
||||
minetest.log(message)
|
||||
else
|
||||
print(value.value)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user