[SPIGOT-6713] Cancelling EntityTransformEvent Causes Deceased Slimes To Not Despawn Created: 17/Aug/21  Updated: 22/Aug/21  Resolved: 22/Aug/21

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

Type: Bug Priority: Major
Reporter: YourCoal Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Attachments: File EntityTransformEvent Bug.jar     PNG File image-2021-08-16-19-47-12-877.png    
Version: 3219-Spigot-b166a49-8c6d60c (MC: 1.17.1)
Guidelines Read: Yes

 Description   

If you cancel EntityTransformEvent, this event runs indefinitely when killing a slime, never triggering SlimeSplitEvent or spawning smaller slimes, but it also does not despawn the slime that was killed, which causes TPS(CPU) lag and also leaves this in the world:

Code:

@EventHandler(priority = EventPriority.NORMAL)
public void onEntityTransform(EntityTransformEvent event) {     event.setCancelled(true);
}

Attached is the plugin jar if that helps.


Generated at Tue Apr 22 03:12:17 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.