[SPIGOT-5779] Merge distance is wrong by default Created: 13/Jun/20  Updated: 13/Jun/20

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: TheEpicBlock_TEB Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: config, entity, experience, item

Version: CraftBukkit version git-Spigot-a99063f-fad2494 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

The merge radius of both items and experience orbs do not match how they work in vanilla. In vanilla experience orbs don't merge at all. However, in the default spigot.yml the merge distance is set to 3.

For items the merge distance is the item entities hitbox with 0.5 added to the x and z. In spigot's implementation (line 16-19) the merge distance is the entities hitbox with 2.5 added to all 3 axes.

I believe that, since Spigot is supposed to work like vanilla by default, the standard config values should 0.5 for items. The merge radius for items should also be adjusted to only adjust the x and z.

For experience orbs the check should be disabled completely. Maybe by setting it to -1 in the config and adding a check in the code. 0 wouldn't work since the xp orb would still merge if it directly touches.



 Comments   
Comment by md_5 [ 13/Jun/20 ]

No it's not a goal of spigot to be like vanilla by default, just to be able to be configured like vanilla.
The change to the y axis may therefore be a bug, but the numbers being different is not

Generated at Thu Apr 03 15:45:04 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.