mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 05:42:33 +01:00
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
|
if minetest.get_modpath("mesecons_mvps") then
|
||||||
mesecon:register_mvps_stopper("technic:forcefield")
|
mesecon.register_mvps_stopper("technic:forcefield")
|
||||||
end
|
end
|
||||||
|
|
||||||
technic.register_machine("HV", "technic:forcefield_emitter_on", technic.receiver)
|
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 _, pos in ipairs(poslist) do
|
||||||
for _,object in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
for _,object in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
||||||
local entity = object:get_luaentity()
|
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)
|
add_table(objects, object)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -465,9 +465,9 @@ minetest.register_entity("technic:damage_entity", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
mesecon:register_mvps_unmov("technic:frame_entity")
|
mesecon.register_mvps_unmov("technic:frame_entity")
|
||||||
mesecon:register_mvps_unmov("technic:damage_entity")
|
mesecon.register_mvps_unmov("technic:damage_entity")
|
||||||
mesecon:register_on_mvps_move(function(moved_nodes)
|
mesecon.register_on_mvps_move(function(moved_nodes)
|
||||||
local to_move = {}
|
local to_move = {}
|
||||||
for _, n in ipairs(moved_nodes) do
|
for _, n in ipairs(moved_nodes) do
|
||||||
if frames_pos[pos_to_string(n.oldpos)] ~= nil then
|
if frames_pos[pos_to_string(n.oldpos)] ~= nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user