[SPIGOT-7431] EntityMountEvent (entities returned inverted) Created: 16/Jul/23  Updated: 25/Dec/24  Resolved: 16/Jul/23

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

Type: Bug Priority: Major
Reporter: Ssomar Assignee: Parker Hawke
Resolution: Fixed Votes: 0
Labels: event, spigot

Version: 3831-Spigot-0ca4eb6-a94277a (MC: 1.20.1)
Guidelines Read: Yes

 Description   

Hello, I don't know when but recently a change was made and inverted the entities returned in the method of the event EntutyMountEvent. (org.spigotmc.event.entity.EntityMountEvent)

 

Normally when a PLAYER mounts on a PIG

 

getEntity() return the PLAYER

getMount() return the PIG

 

but currently its

 

getEntity() return the PIG

getMount() return the PLAYER

 

Is possible to fix that please so we can keep the consistency between all versions.

Thank you in advance.



 Comments   
Comment by Ssomar [ 16/Jul/23 ]

Nop sorry I only know that it appears after the 1.20.1 but the firsts builds of 1.20.1 are fine, so maybe in the middle of 1.20.1

Comment by Parker Hawke [ 16/Jul/23 ]

Do you happen to know the last version that this behaviour was working as intended? I'm experiencing this behaviour but I'm unable to determine where it was the change was made.

 

EDIT: I think I've narrowed it down to a single commit. Disregard Fix incoming. Thanks!

Generated at Thu Apr 03 16:47:49 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.