Fixed crashing due to tables not being visible from landclaim_0gb_us/commands.lua
This commit is contained in:
parent
d8cd00db37
commit
4626d88237
@ -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
|
||||
|
||||
|
@ -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", {
|
||||
|
Loading…
x
Reference in New Issue
Block a user