Skip to content
Browse files
Fix undeclared global variable
  • Loading branch information
Rui authored and sfan5 committed Jan 5, 2016
1 parent 35b68c4 commit 7a19c5303bc5f39f4321143862d0f3ea244c323c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -67,7 +67,7 @@ local get_formspec = function(name, identifier)

--implement worldedit.show_page(name, page) in different ways depending on the available APIs
if unified_inventory then --unified inventory installed
if rawget(_G, "unified_inventory") then --unified inventory installed
local old_func = worldedit.register_gui_function
worldedit.register_gui_function = function(identifier, options)
old_func(identifier, options)
@@ -100,7 +100,7 @@ if unified_inventory then --unified inventory installed
player:set_inventory_formspec(get_formspec(name, page))
elseif inventory_plus then --inventory++ installed
elseif rawget(_G, "inventory_plus") then --inventory++ installed
local can_worldedit = minetest.check_player_privs(player:get_player_name(), {worldedit=true})
if can_worldedit then

0 comments on commit 7a19c53

Please sign in to comment.