Override core.is_creative_enabled
This commit is contained in:
parent
ef28c96a13
commit
cb8802a5c2
6
init.lua
6
init.lua
|
@ -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",
|
||||||
|
|
Ŝarĝante…
Reference in New Issue