3d_armor_stand: add to mpvs stoppers
This commit is contained in:
parent
fb916fbb1d
commit
a73104b061
@ -1,2 +1,3 @@
|
|||||||
3d_armor
|
3d_armor
|
||||||
default
|
default
|
||||||
|
mesecons_mvps?
|
||||||
|
@ -200,7 +200,6 @@ local function register_armor_stand(name, def)
|
|||||||
after_destruct = update_entity,
|
after_destruct = update_entity,
|
||||||
on_blast = function(pos)
|
on_blast = function(pos)
|
||||||
drop_armor(pos)
|
drop_armor(pos)
|
||||||
armor.drop_armor(pos, "3d_armor_stand:armor_stand")
|
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
@ -213,6 +212,10 @@ local function register_armor_stand(name, def)
|
|||||||
def.material = nil
|
def.material = nil
|
||||||
|
|
||||||
minetest.register_node(name, def)
|
minetest.register_node(name, def)
|
||||||
|
|
||||||
|
if mesecon and mesecon.register_mvps_stopper then
|
||||||
|
mesecon.register_mvps_stopper(name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user