Charakterbewegungen hinzugefügt, Deko hinzugefügt, Kochrezepte angepasst

This commit is contained in:
N-Nachtigal 2025-05-14 16:36:42 +02:00
parent 95945c0306
commit a0c893ca0b
1124 changed files with 64294 additions and 763 deletions

37
mods/futil/util/file.lua Normal file
View file

@ -0,0 +1,37 @@
function futil.file_exists(path)
local f = io.open(path, "r")
if f then
io.close(f)
return true
else
return false
end
end
function futil.load_file(filename)
local file = io.open(filename, "r")
if not file then
return
end
local contents = file:read("*a")
file:close()
return contents
end
-- minetest.safe_file_write is apparently unreliable on windows
function futil.write_file(filename, contents)
local file = io.open(filename, "w")
if not file then
return false
end
file:write(contents)
file:close()
return true
end