Fixed crashing due to tables not being visible from landclaim_0gb_us/commands.lua

This commit is contained in:
0gb.us 2013-03-04 20:21:01 -08:00
parent d8cd00db37
commit 4626d88237
2 changed files with 10 additions and 0 deletions

View File

@ -75,3 +75,7 @@ function landclaim_0gb_us.can_interact(name, pos)
or (landclaim_0gb_us.override[name] and minetest.check_player_privs(name, {claim_admin=true}))
end
-- Pass these to commands.lua:
landclaim_0gb_us.price = price
landclaim_0gb_us.claims = claims

View File

@ -1,3 +1,9 @@
-- Get tables from api.lua and hide them from the global scope:
local price = landclaim_0gb_us.price
local claims = landclaim_0gb_us.claims
landclaim_0gb_us.price = nil
landclaim_0gb_us.claims = nil
minetest.register_privilege("claim_admin", "Can override claims")
minetest.register_chatcommand("claimoverride", {