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

Cancelling BlockPlaceEvent and placing down bed may cause drops to dupe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None
    • This server is running CraftBukkit version 3719-Spigot-d2fdfe3-1eb8837 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
    • Yes

      When having a plugin that cancels BlockPlaceEvent, if you place a bed on top of a crop in a dark room, it will be duped.
      I suspect it is because the block placement updates the crop below and because it is in a dark room, it is dropped. However, the event is cancelled, so nothing really happens, but because the crop was already dropped, you can do it again and again resulting many crops being dropped.

      It seems like this bug is from at least 1.17, as can be seen in this patch that was made for WorldGuard a while ago:
      https://www.youtube.com/watch?v=OZ99W8jlnfY&t=3s

      (You must do it in a dark room, otherwise it will not occur)

            Unassigned Unassigned
            Ome_R Omer Ben Gera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: