turtle/tlang: log prints

This commit is contained in:
cron 2020-11-05 19:55:55 +00:00 committed by Schmappie Eldress
parent 632eb7e286
commit 6e8c1fb739

View File

@ -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