From 7fcb90873211e968ea3759aabfeb3659fbbbac72 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 25 Jan 2016 20:41:35 +0000 Subject: [PATCH] Add on_blast to stop tnt blowing up protection --- doors_chest.lua | 2 ++ init.lua | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doors_chest.lua b/doors_chest.lua index 2bc0b9c..65e389c 100644 --- a/doors_chest.lua +++ b/doors_chest.lua @@ -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 diff --git a/init.lua b/init.lua index 3c641fe..7a55283 100644 --- a/init.lua +++ b/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") \ No newline at end of file +print ("[MOD] Protector Redo loaded")