let the game load on older clients

master
MisterE 2022-08-13 11:02:13 -04:00
parent 0506e9b65b
commit ef08020c9a
1 changed files with 6 additions and 3 deletions

View File

@ -18,9 +18,12 @@ default.get_translator = S
-- This section should be updated before release and older checks can be dropped -- This section should be updated before release and older checks can be dropped
-- when newer ones are introduced. -- when newer ones are introduced.
if ItemStack("").add_wear_by_uses == nil then if ItemStack("").add_wear_by_uses == nil then
error("\nThis version of Minetest Game is incompatible with your engine version ".. minetest.log("error","\nThis version of Mesecraft plays better on a newer Minetest engine version"..
"(which is too old). You should download a version of Minetest Game that ".. "(Yours is too old). You should download a version of Minetest Game that "..
"matches the installed engine version.\n") "matches the installed engine version.\n")
-- error("\nThis version of Minetest Game is incompatible with your engine version "..
-- "(which is too old). You should download a version of Minetest Game that "..
-- "matches the installed engine version.\n")
end end
-- GUI related stuff -- GUI related stuff