summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-01-25 20:41:35 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-01-25 20:41:35 +0000
commit7fcb90873211e968ea3759aabfeb3659fbbbac72 (patch)
tree9f8dd0714ea51666637a1f040648842852bd2ae1 /init.lua
parent2032a35798e2d0d8a0a001c2b43dd2bb24bbcdda (diff)
Add on_blast to stop tnt blowing up protection
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 5 insertions, 1 deletions
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")