summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-02-05 09:58:15 +0100
committerTim <t4im@users.noreply.github.com>2015-02-05 09:58:15 +0100
commit1a962542e65c8f8202eca6b4238b4d8e0068c2cf (patch)
treee8e5f667dfec2d8135b8bca8a6215eabef843530
parent4bae2c7fa37936c549b45b40b3d6747850c795cb (diff)
supress intentional creative_inventory check warning, this fixes #18
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e1d2c02..85bf293 100644
--- a/init.lua
+++ b/init.lua
@@ -32,7 +32,7 @@ unified_inventory.home_filename =
unified_inventory.default = "craft"
-- Disable default creative inventory
-if creative_inventory then
+if rawget(_G, "creative_inventory") then
function creative_inventory.set_creative_formspec(player, start_i, pagenum)
return
end