Add on_blast to stop tnt blowing up protection
This commit is contained in:
parent
2032a35798
commit
7fcb908732
2 changed files with 7 additions and 1 deletions
|
|
@ -272,6 +272,8 @@ minetest.register_node("protector:chest", {
|
||||||
"protector:chest_" .. minetest.pos_to_string(pos),
|
"protector:chest_" .. minetest.pos_to_string(pos),
|
||||||
formspec)
|
formspec)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_blast = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Protected Chest formspec buttons
|
-- Protected Chest formspec buttons
|
||||||
|
|
|
||||||
4
init.lua
4
init.lua
|
|
@ -341,6 +341,8 @@ minetest.register_node("protector:protect", {
|
||||||
|
|
||||||
return protector.can_dig(1, pos, player:get_player_name(), true, 1)
|
return protector.can_dig(1, pos, player:get_player_name(), true, 1)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_blast = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
@ -420,6 +422,8 @@ minetest.register_node("protector:protect2", {
|
||||||
|
|
||||||
return protector.can_dig(1, pos, player:get_player_name(), true, 1)
|
return protector.can_dig(1, pos, player:get_player_name(), true, 1)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_blast = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue