Compat hack for 5.3- use_texture_alpha.

This commit is contained in:
Aaron Suen 2021-02-07 13:33:58 -05:00
parent dabf8ac697
commit c85ad5d662
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
-- LUALOCALS < ---------------------------------------------------------
local minetest, type
= minetest, type
-- LUALOCALS > ---------------------------------------------------------
if minetest.features.use_texture_alpha_string_modes then return end
local oldreg = minetest.register_item
function minetest.register_item(name, def, ...)
if def and type(def.use_texture_alpha) == "string" then
def.use_texture_alpha = def.use_texture_alpha == "blend" or nil
end
return oldreg(name, def, ...)
end

View File

@ -84,6 +84,7 @@ end
include("compat_clientversion")
include("compat_issue10127")
include("compat_legacyent")
include("compat_nodealpha")
include("util_misc")
include("util_hookmeta")