diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-10-22 10:34:50 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-10-22 10:34:50 +0100 |
commit | 923b014c48ea999fd2b288f3d0a3840835264947 (patch) | |
tree | b4ac130ed33ba0cb3f5a53d8506afc0fee00f22a | |
parent | 59d034e88a226a329910b7bdce94e16660cd0d8a (diff) |
Fixed protector overlap bug
-rw-r--r-- | init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -191,13 +191,15 @@ function protector.check_overlap(itemstack, placer, pointed_thing) end if not protector.can_dig(protector.radius * 2, pointed_thing.under, + placer:get_player_name(), true, 3) + or not protector.can_dig(protector.radius * 2, pointed_thing.above, placer:get_player_name(), true, 3) then minetest.chat_send_player(placer:get_player_name(), "Overlaps into above players protected area") return end - return minetest.item_place(itemstack, placer, pointed_thing, param2) + return minetest.item_place(itemstack, placer, pointed_thing) end @@ -774,4 +776,4 @@ else print("[Protector] pvp_protect is disabled") end -print ("[MOD] Protector loaded")
\ No newline at end of file +print ("[MOD] Protector Redo loaded")
\ No newline at end of file |