-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entity spawned in on_step
not visible to get_objects_inside_radius
#14614
Comments
get_objects_inside_radius
on_step
not visible to get_objects_inside_radius
if i remember entities are activated asynchronously, when you are in on_step there are no activated yet, which require a full environment::step core side here is a short engine algo showing you why you have this behaviour for Environment::step { for enabled_objs { |
No, that's not it. Objects are directly activated here: minetest/src/serverenvironment.cpp Lines 1894 to 1896 in ae4cd1e
It's due to the newly introduced data structure acting this way. |
Minetest version
Minetest 5.9.0-dev 3017b02 (Linux)
Summary
#13880 causes objects spawned during iteration of the object list (so during
on_step
) to only show up once this iteration ends.This could be considered a defect. It's not easily fixable.
Steps to reproduce
/spawnentity test2:a
bonus:
4. change
on_step
toon_activate
5. re-do and observe that "found it" was printed
The text was updated successfully, but these errors were encountered: