Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6713

Cancelling EntityTransformEvent Causes Deceased Slimes To Not Despawn

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None
    • 3219-Spigot-b166a49-8c6d60c (MC: 1.17.1)
    • Yes

      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.

            Unassigned Unassigned
            YourCoal YourCoal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: