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

Duplicate UUID spam in console when spawning FallingBlock

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • Windows 10

    • CraftBukkit version 3479-Spigot-42b6152-911bde1 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
    • Yes

      Summoning Falling Block entity with the method World.spawnFallingBlock(Location, BlockData) spawns the entity twice causing a duplicate UUID in the world and spamming the console.

      From my understanding the problem is caused by:

      • Spawning the entity in FallingBlockEntity.fall(Level, BlockPos, BlockState) unless the EntityChangeBlockEvent was cancelled
      • Spawning the entity in the CraftWorld.spawnFallingBlock(Location, BlockData) regardless of weather the entity was already spawned in the previous method

      Picture of the problem: https://prnt.sc/PN7OeZU77H75

      Minimal plugin to reproduce: https://prnt.sc/Cb4-xqEzSpEh

      The spam: https://prnt.sc/6OKbdg28y0KO

      (added as a .txt file in attachments & as a plugin .jar)

       

            Doc Doc
            steve6472 steve6472
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: