Aktualizovat „pipeworks/init.lua“

This commit is contained in:
Milan2018 2020-10-07 12:41:08 +02:00
parent ba1cae9f88
commit ed8f49c9b8
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt"
local worldsettingsfile = io.open(worldsettingspath, "r") local worldsettingsfile = io.open(worldsettingspath, "r")
if worldsettingsfile then if worldsettingsfile then
worldsettingsfile:close() worldsettingsfile:close()
dofile(worldsettingspath) if dofile(worldsettingspath) == "defect" then
return
end
end end
if pipeworks.toggles.pipe_mode == "pressure" then if pipeworks.toggles.pipe_mode == "pressure" then
minetest.log("warning", "pipeworks pressure logic mode comes with caveats and differences in behaviour, you have been warned!") minetest.log("warning", "pipeworks pressure logic mode comes with caveats and differences in behaviour, you have been warned!")