mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 11:20:40 +01:00
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)
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user