From cb8802a5c21abc226af1e43253c211382a933c1a Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Fri, 22 Jan 2021 19:55:17 +0100 Subject: [PATCH] Override core.is_creative_enabled --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index 63928bc..de8cb65 100644 --- a/init.lua +++ b/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",