mirror of
https://github.com/pandorabox-io/banners.git
synced 2025-01-06 16:10:32 +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)
|
on_destruct = function(pos)
|
||||||
banners.banner_on_destruct(pos)
|
banners.banner_on_destruct(pos)
|
||||||
end,
|
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 meta = minetest.get_meta(pos)
|
||||||
local facname = meta:get_string("faction")
|
local facname = meta:get_string("faction")
|
||||||
if facname then
|
if facname then
|
||||||
@ -120,7 +123,7 @@ minetest.register_node("banners:power_banner", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
banners.banner_on_dig(pos, n, p)
|
banners.banner_on_dig(pos, n, p)
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
banners.after_powerbanner_placed = function(pos, player, itemstack, pointed_thing)
|
banners.after_powerbanner_placed = function(pos, player, itemstack, pointed_thing)
|
||||||
|
Loading…
Reference in New Issue
Block a user