Duplicate UUID spam in console when spawning FallingBlock

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      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)

       

            Assignee:
            Doc
            Reporter:
            steve6472
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: