Improve version check

This commit is contained in:
Joachim Stolberg 2021-01-27 19:29:21 +01:00
parent 6d2dea727d
commit e1f9a8d4f6

@ -98,7 +98,7 @@ minetest.register_craft({
if tubelib2.version < 2.0 then if tubelib2.version < 2.0 then
minetest.log("error", "TechPack/Tubelib requires tubelib2 version 2.0 or newer!!!") error("TechPack/Tubelib requires tubelib2 version 2.0 or newer!!!")
else else
dofile(minetest.get_modpath("tubelib") .. "/tubes.lua") dofile(minetest.get_modpath("tubelib") .. "/tubes.lua")
dofile(minetest.get_modpath("tubelib") .. "/command.lua") dofile(minetest.get_modpath("tubelib") .. "/command.lua")