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
1 changed files with 6 additions and 0 deletions

View File

@ -194,6 +194,12 @@ local function outdated(name)
return show_formspec(name, "i3", fs)
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 = {
dye = "dye:white",
wool = "wool:white",