Solved Cancelling CreatureSpawnEvent

Discussion in 'Spigot Plugin Development' started by imDaniX, Feb 20, 2020.

  1. Back in the days I remember that cancelling CreatureSpawnEvent can potentially cause a memory leak. Is it still a thing? If so - removing entity 1 tick later is the best way to do it?
     
  2. no, I don't think that is a memory leak, just more garbage collection.
    Paper adds PreCreatureSpawnEvent to reduce memory garbage
     
    • Like Like x 1
  3. Oh, that's good. Thank you.
    Yeah, I'm using it, but I want to support Spigot too, so, I will use both but depending on server core(paper or spigot).