forked from minetest-mods/technic
update to latest mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or later.
This commit is contained in:
parent
f13570b59b
commit
8da4d057b0
|
@ -253,7 +253,7 @@ minetest.register_node("technic:forcefield", {
|
|||
|
||||
|
||||
if minetest.get_modpath("mesecons_mvps") then
|
||||
mesecon:register_mvps_stopper("technic:forcefield")
|
||||
mesecon.register_mvps_stopper("technic:forcefield")
|
||||
end
|
||||
|
||||
technic.register_machine("HV", "technic:forcefield_emitter_on", technic.receiver)
|
||||
|
|
|
@ -120,7 +120,7 @@ local function move_nodes_vect(poslist,vect,must_not_move,owner)
|
|||
for _, pos in ipairs(poslist) do
|
||||
for _,object in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
||||
local entity = object:get_luaentity()
|
||||
if not entity or not mesecon:is_mvps_unmov(entity.name) then
|
||||
if not entity or not mesecon.is_mvps_unmov(entity.name) then
|
||||
add_table(objects, object)
|
||||
end
|
||||
end
|
||||
|
@ -465,9 +465,9 @@ minetest.register_entity("technic:damage_entity", {
|
|||
end,
|
||||
})
|
||||
|
||||
mesecon:register_mvps_unmov("technic:frame_entity")
|
||||
mesecon:register_mvps_unmov("technic:damage_entity")
|
||||
mesecon:register_on_mvps_move(function(moved_nodes)
|
||||
mesecon.register_mvps_unmov("technic:frame_entity")
|
||||
mesecon.register_mvps_unmov("technic:damage_entity")
|
||||
mesecon.register_on_mvps_move(function(moved_nodes)
|
||||
local to_move = {}
|
||||
for _, n in ipairs(moved_nodes) do
|
||||
if frames_pos[pos_to_string(n.oldpos)] ~= nil then
|
||||
|
|
Loading…
Reference in New Issue
Block a user