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

CreatureSpawnEvent's with SpawnReason CHUNK_GEN are no longer occurring.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-140f654-b446cb5 (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT)
    • Yes

      CreatureSpawnEvent's used to have the SpawnReason as "CHUNK_GEN" if the creature being spawned was due to first-time chunk generation. Now, no creatures fire the event with "CHUNK_GEN" at all.

       

      Recreating:

      1) Fresh Spigot/CraftBukkit install with no other plugins.

      2) Create a basic plugin with the following event registered to the PluginManager:

      @EventHandler(priority = EventPriority.MONITOR)
      public void onCreatureSpawnEvent(CreatureSpawnEvent event) { 
      
         Bukkit.broadcastMessage(event.getSpawnReason().name());
      } 
      

      3) Confirm that you are receiving spawn reasons such as "NATURAL" in the chat.

      4) Observe that as you load new chunks in a new world, the spawn reason "CHUNK_GEN" is missing.

            Unassigned Unassigned
            BleedObsidian Jesse Prescott
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: