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

BlockPhysicsEvent Bugg

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None

      BlockPhysicsEvent doesn't cancel blocks that get updated because of an check, like if the block is near water (sugercane,wheat,pumpkin) or is placed on dirt/sand (sugercane,wheat,pumpkin). It seems like there is missing a BlockPhysicsEvent call on this behavior.

      #Test Scenerio:

      • Cancel BlockPhysicsEvent
      • Place a 3x3 Square of TypeID 59 (wheat_block)
      • Catch ItemSpawnEvent

      You will see that BlockPhysicsEvent will get denied and the structure of 3x3 will get placed, but at a random tick rate the blocks get updated and an seed will get dropped and the ItemSpawnEvent get called and the BlockPhysicsEvent which was canceled. The block disappears and makes it not work like it should.

      I've tested this as well with Tall_Grass, same result as above.

      #Technical

      • BlockPlant#e - It changes blocks, but don't call any events.

            Unassigned Unassigned
            Zanax Zanax
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: