Browse Source

disallow teleport in protected zones

main
Hendrik Langer 3 years ago
parent
commit
ef41079513
  1. 2
      arena.lua
  2. 2
      items.lua

2
arena.lua

@ -65,7 +65,7 @@ if minetest.get_modpath("areas") then
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=1}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=1},
light_source = 1, light_source = 1,
after_place_node = function(pos, placer, itemstack, pointed_thing) after_place_node = function(pos, placer, itemstack, pointed_thing)
return creative_regions.protector_set_area_privs(pos, placer, itemstack, pointed_thing, "-creative, -fast, -fly, +arena", "Arena Protector") return creative_regions.protector_set_area_privs(pos, placer, itemstack, pointed_thing, "-creative, -fast, -fly, -teleport, +arena", "Arena Protector")
end, end,
can_dig = creative_regions.protector_can_dig, can_dig = creative_regions.protector_can_dig,
after_dig_node = function(pos, oldnode, oldmetadata, digger) after_dig_node = function(pos, oldnode, oldmetadata, digger)

2
items.lua

@ -135,7 +135,7 @@ if minetest.get_modpath("areas") then
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=1}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=1},
light_source = 1, light_source = 1,
after_place_node = function(pos, placer, itemstack, pointed_thing) after_place_node = function(pos, placer, itemstack, pointed_thing)
return creative_regions.protector_set_area_privs(pos, placer, itemstack, pointed_thing, "-fast, -fly", "No-Fly-Zone Protector") return creative_regions.protector_set_area_privs(pos, placer, itemstack, pointed_thing, "-fast, -fly, -teleport", "No-Fly-Zone Protector")
end, end,
can_dig = creative_regions.protector_can_dig, can_dig = creative_regions.protector_can_dig,
after_dig_node = function(pos, oldnode, oldmetadata, digger) after_dig_node = function(pos, oldnode, oldmetadata, digger)

Loading…
Cancel
Save