Update engine feature checks

This commit is contained in:
sfan5 2022-06-13 20:02:08 +02:00
parent d7dd15782c
commit 986b65775f

@ -17,10 +17,7 @@ default.get_translator = S
-- and avoids obscure, hard to debug runtime errors. -- and avoids obscure, hard to debug runtime errors.
-- 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 not minetest.is_creative_enabled or not minetest.has_feature({ if ItemStack("").add_wear_by_uses == nil then
direct_velocity_on_players = true,
use_texture_alpha_string_modes = true,
}) then
error("\nThis version of Minetest Game is incompatible with your engine version ".. 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 ".. "(which is too old). You should download a version of Minetest Game that "..
"matches the installed engine version.\n") "matches the installed engine version.\n")