Entities summoned with names cannot run events based on name in the same tick on Realms
Summary:
Summoning a named entity from chat or player animation on a Realm will not allow events to run targeted to that name in the same tick.
Verification Build:
1.19.72
Regression Builds:
N/A
Impact:
This is breaking 2 of our live projects if they are run on Realms. 100 Days and Cursed Dragons.
Repro Steps:
1. Download test world
2. Type `/function test`
3. Notice the entity does despawn immediately
4. Push world to Realms
5. Type `/function test`
6. Notice the entity summoned does not despawn
Function commands in test world:
/summon bug:test_entity ~ ~0.5 ~ 0 0 medium joe
/event entity @e[type=bug:test_entity,name=joe] despawn
This summons an entity named joe. Joe entity despawns immediately on single and multiplayer. On Realms, the entity named "joe" is not despawned until the event is run again.
Observed Results:
On Realms the entity exists, event though the function ran an event to despawn the entity based on name
Expected Results:
The named entity should despawn. Realms should act the same as local