Paper icon indicating copy to clipboard operation
Paper copied to clipboard

ExperienceOrbMergeEvent not called for all merges

Open Machine-Maker opened this issue 2 years ago • 0 comments

Expected behavior

ExperienceOrbMergeEvent should be fired for all XP orb merges.

Observed/Actual behavior

the event is only fired for merges that occur as a result of one orb being added to the world.

Steps/models to reproduce

  1. plugin listening to ExperienceOrbMergeEvent
  2. Disable all forms of entity spawning, gamerules, etc.
  3. Spawn an xp orb: /summon minecraft:experience_orb ~ ~-5 ~ {Value: 5}
  4. Spawn 39 other entities (orbs only merge if their entity id difference % 40 == 0)
  5. Spawn another xp orb with the same value.
  6. Verify they merged with /execute as @e[type=experience_orb,distance=..10] run say hi (should only print 1 "hi")

Plugin and Datapack List

none

Paper version

f9f90791e43f396ed12be5e0e8867691fc87dbe7

Other

No response

Machine-Maker avatar May 30 '23 23:05 Machine-Maker