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

EntityChangeBlockEvent#setCancelled() has no effect [FallingBlock]

XMLWordPrintable

      Calling setCancelled(true) for the EntityChangeBlockEvent has no effect. This issue only affects FallingBlocks as Mojang added a condition to a if statement before the event call happens.

      This basically means that the change to the block happens before being able to intercept the event itself.

      This can also be viewed here at line 24: EntityFallingBlock.patch

      The solution would be to remove the last condition [this.world.setTypeAndData(blockposition, this.block, 3)] on the if statement.

            Unassigned Unassigned
            matzefratze123 matzefratze123
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: