//clearobjects doesn't remove unknown objects #6575
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#6575
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rheo reports a bug:
Player position:
Player look:
Player information:
Player meta:
Log identifier
Profiler save:
Status:
Teleport command:
Compass command:
//lua minetest.add_entity(worldedit.pos1.rheo, "bad_entity")
//1
and//2
, and try to remove it using//clearobjects
. nothing happens.emits just
emits
0
emits
0
punching the bad entity removes it... but this doesn't work well if you accidentally created hundreds of them...
if you believe in docs that list
remove()
underLua entity only (no-op for other objects)
then you can just do:
Which makes 0 sense, but seems to work.
Also, deprecated
get_entity_name()
works on them:API feels incomplete to me...
i figured out how to remove them right before i was about to submit an engine issue:
Makes no sense that you can create them and they would have name stored/assigned, but the only way to get this name is deprecated.
oh, i didn't see your replies before i closed this. possibly a better solution would be
get_entity_name
is reasonably deprecated. i can also see why you wouldn't be able to get the luaentity for an unknown object - for one, the metatable would be ill-defined. also, this is almost certainly the solution to #3601, though i don't know how NPC Amanda showed up as a culprit.upstream PR https://github.com/Uberi/Minetest-WorldEdit/pull/244
rheo reports: i can't remove unknown objects ...to rheo reports: ~~i can't remove unknown objects~~rheo reports: ~~i can't remove unknown objects~~to //clearobjects doesn't remove unknown objectsupstream was merged.
QA
For some reason I can't remove the entity, the fix clearly is in.