[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: |
![]() ![]() |
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. |