mt-mods / jumpdrive

Minetest jumpdrive mod

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jumpdrive does not always move entities

S-S-X opened this issue · comments

commented

By that I mean it does not always move entities that do have compatibility code for moving and that also works most of time.

So far I've only noticed this happening when far from entities that fail to move, for example if jumping away with first engine of fleet and entities happen to be in other section of fleet ship.

Also noticed that nodetimer problem described in #89 can be completely mitigated by doing what seems to cause this bug 🤣

😲 🤦

.. this actually makes sense: objects don't get moved because they aren't active anymore
and don't pop up when calling minetest.get_objects_in_area for that area.
And i guess minetest.get_nodetimer has the same issues somehow.

A solution for both problems (if thats the cause) would be to temporary forceload the area when moving, but this makes things a lot more complex than they are already 🤔

Hmm... doesn't get_objects_inside_radius use a sphere radius?

local all_objects = minetest.get_objects_inside_radius(source_center, 20);