Use minetest.log instead of prin in signs mod
This commit is contained in:
parent
27f7b0a1ca
commit
22f3d368d5
|
@ -5,7 +5,7 @@ local chars_file = io.open(minetest.get_modpath("signs").."/characters", "r")
|
||||||
local charmap = {}
|
local charmap = {}
|
||||||
local max_chars = 16
|
local max_chars = 16
|
||||||
if not chars_file then
|
if not chars_file then
|
||||||
print("[signs] E: character map file not found")
|
minetest.log("error", "[signs] : character map file not found")
|
||||||
else
|
else
|
||||||
while true do
|
while true do
|
||||||
local char = chars_file:read("*l")
|
local char = chars_file:read("*l")
|
||||||
|
@ -93,7 +93,7 @@ local generate_line = function(s, ypos)
|
||||||
file = charmap[s:sub(i, i + 1)]
|
file = charmap[s:sub(i, i + 1)]
|
||||||
i = i + 2
|
i = i + 2
|
||||||
else
|
else
|
||||||
print("[signs] W: unknown symbol in '"..s.."' at "..i.." (probably "..s:sub(i, i)..")")
|
minetest.log("warning", "[signs] Unknown symbol in '"..s.."' at "..i.." (probably "..s:sub(i, i)..")")
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
if file ~= nil then
|
if file ~= nil then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user