mirror of
https://github.com/pandorabox-io/banners.git
synced 2024-11-12 22:00:17 +01:00
Fixed power banners on_dig()
This commit is contained in:
parent
7e74d0a3a0
commit
e4dc4965f5
|
@ -110,7 +110,10 @@ minetest.register_node("banners:power_banner", {
|
|||
on_destruct = function(pos)
|
||||
banners.banner_on_destruct(pos)
|
||||
end,
|
||||
on_dig = function(pos, n, p)
|
||||
on_dig = function(pos, n, p)
|
||||
if minetest.is_protected(pos, p) then
|
||||
return
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
local facname = meta:get_string("faction")
|
||||
if facname then
|
||||
|
@ -120,7 +123,7 @@ minetest.register_node("banners:power_banner", {
|
|||
end
|
||||
end
|
||||
banners.banner_on_dig(pos, n, p)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
banners.after_powerbanner_placed = function(pos, player, itemstack, pointed_thing)
|
||||
|
|
Loading…
Reference in New Issue
Block a user