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

Cancelling block placements causes the client to update neighboring blocks anyways

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version dev-Spigot-18c71bf-2cdc6b1 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
    • Yes

      When a player places a block next to a fence and the corresponding PlayerInteractEvent is cancelled by a plugin, the neighboring fence block updates its state to 'connect' to the 'placed' block, although the block is not actually placed.

      I assume that this change is client sided, since reconnecting to the server reverts the state of the fence block to no longer be connected.
      Maybe the server is missing some update packets to revert any changes of neighboring blocks that the client predicts to normally take place.

      There may be blocks other than fences that are affected by this as well.

      The attached plugin simply cancels all right-click-block interactions that would usually place a dirt block. Trying to place a dirt block next to a fence will result in the fence 'connecting' to the space in which the dirt block would usually be placed.

            Unassigned Unassigned
            blablubbabc blablubbabc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: