summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-02-01 14:13:20 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-02-01 14:13:20 +0000
commit11c0b9b1537ebba2a494a0ed541f10d20e1dd706 (patch)
treea1bb333ce9b9e5791927e12257c3236a128ee9aa /init.lua
parent9a8b6c39577b9591e5b4b94254616db8fcb0df2b (diff)
Protectors cannot be moved by mesecons anymore
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index ff59383..aebfdb0 100644
--- a/init.lua
+++ b/init.lua
@@ -640,4 +640,10 @@ dofile(path .. "/admin.lua")
dofile(path .. "/tool.lua")
dofile(path .. "/lucky_block.lua")
+-- stop mesecon pistons from pushing protectors
+if minetest.get_modpath("mesecons_mvps") then
+ mesecon.register_mvps_stopper("protector:protect")
+ mesecon.register_mvps_stopper("protector:protect2")
+end
+
print (S("[MOD] Protector Redo loaded"))