mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-03-13 11:32:31 +01:00
Add on_blast to stop tnt blowing up protection
This commit is contained in:
@ -272,6 +272,8 @@ minetest.register_node("protector:chest", {
|
||||
"protector:chest_" .. minetest.pos_to_string(pos),
|
||||
formspec)
|
||||
end,
|
||||
|
||||
on_blast = function() end,
|
||||
})
|
||||
|
||||
-- Protected Chest formspec buttons
|
||||
|
6
init.lua
6
init.lua
@ -341,6 +341,8 @@ minetest.register_node("protector:protect", {
|
||||
|
||||
return protector.can_dig(1, pos, player:get_player_name(), true, 1)
|
||||
end,
|
||||
|
||||
on_blast = function() end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -420,6 +422,8 @@ minetest.register_node("protector:protect2", {
|
||||
|
||||
return protector.can_dig(1, pos, player:get_player_name(), true, 1)
|
||||
end,
|
||||
|
||||
on_blast = function() end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -533,4 +537,4 @@ dofile(minetest.get_modpath("protector") .. "/doors_chest.lua")
|
||||
dofile(minetest.get_modpath("protector") .. "/pvp.lua")
|
||||
dofile(minetest.get_modpath("protector") .. "/admin.lua")
|
||||
|
||||
print ("[MOD] Protector Redo loaded")
|
||||
print ("[MOD] Protector Redo loaded")
|
||||
|
Reference in New Issue
Block a user