summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorkilbith <kilbith@users.noreply.github.com>2016-02-08 13:07:23 +0100
committerkilbith <kilbith@users.noreply.github.com>2016-02-08 13:07:23 +0100
commitf3127e9d7cba5e926e29e305669edfdfd6cd886e (patch)
tree2ddc1d491d7cd8c874ba4019fa3f8704013bbce5 /init.lua
parentdf1309a6fdd02bfdc1cd5c83cadd4361267f7f21 (diff)
Fix disabling of default creative inventory (fixes #46)
The function prefix in upstream has changed.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index b327ecd..fbd698f 100644
--- a/init.lua
+++ b/init.lua
@@ -48,8 +48,8 @@ unified_inventory = {
}
-- Disable default creative inventory
-if rawget(_G, "creative_inventory") then
- function creative_inventory.set_creative_formspec(player, start_i, pagenum)
+if rawget(_G, "creative") then
+ function creative.set_creative_formspec(player, start_i, pagenum)
return
end
end