Commit c85ad5d6 authored by Aaron Suen's avatar Aaron Suen
Browse files

Compat hack for 5.3- use_texture_alpha.

parent dabf8ac6
-- 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
......@@ -84,6 +84,7 @@ end
include("compat_clientversion")
include("compat_issue10127")
include("compat_legacyent")
include("compat_nodealpha")
include("util_misc")
include("util_hookmeta")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment