Override core.is_creative_enabled

This commit is contained in:
Jean-Patrick Guerrero 2021-01-22 19:55:17 +01:00
parent ef28c96a13
commit cb8802a5c2

View File

@ -194,6 +194,12 @@ local function outdated(name)
return show_formspec(name, "i3", fs) return show_formspec(name, "i3", fs)
end end
local old_is_creative_enabled = core.is_creative_enabled
function core.is_creative_enabled(name)
return core.check_player_privs(name, {creative = true}) or old_is_creative_enabled(name)
end
i3.group_stereotypes = { i3.group_stereotypes = {
dye = "dye:white", dye = "dye:white",
wool = "wool:white", wool = "wool:white",