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

Cancelling EntityTransformEvent Causes Deceased Slimes To Not Despawn

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • 3219-Spigot-b166a49-8c6d60c (MC: 1.17.1)
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: