diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-01 14:13:20 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-01 14:13:20 +0000 |
commit | 11c0b9b1537ebba2a494a0ed541f10d20e1dd706 (patch) | |
tree | a1bb333ce9b9e5791927e12257c3236a128ee9aa | |
parent | 9a8b6c39577b9591e5b4b94254616db8fcb0df2b (diff) |
Protectors cannot be moved by mesecons anymore
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | depends.txt | 3 | ||||
-rw-r--r-- | init.lua | 6 |
3 files changed, 9 insertions, 1 deletions
@@ -45,6 +45,7 @@ Change log: 2.0 - Added protector placement tool (thanks to Shara) so that players can easily stand on a protector, face in a direction and it places a new one at a set distance to cover protection radius. Added /protector_show command (thanks agaran) + Protectors cannot be moved by mesecon pistons or machines. Lucky Blocks: 6 diff --git a/depends.txt b/depends.txt index 8a8d2a2..4713add 100644 --- a/depends.txt +++ b/depends.txt @@ -1,3 +1,4 @@ default intllib? -lucky_block?
\ No newline at end of file +lucky_block? +mesecons_mvps? @@ -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")) |