Paper
Paper copied to clipboard
ALTERNATE_CURRENT incorrect event cancellation
Expected behavior
When placing REDSTONE next to a SHORT_GRASS (or any other flower) that is above a block that is not GRASS_BLOCK (such as DIAMOND_BLOCK) in a region, in which you do not have the permission to place blocks, you would expect the SHORT_GRASS to not be broken, as the plugin is cancelling the place event.
Observed/Actual behavior
The SHORT_GRASS is broken even when the event has been cancelled by the plugin.
Steps/models to reproduce
- Download WorldGuard and WorldEdit
- Set the
redstone-implementationin paper config toALTERNATE_CURRENT - Create any region
- Inside the region, using WorldEdit, set
SHORT_GRASS(or any other flower) above a block, such asDIAMOND_BLOCK - Make sure you do not have the permission to place blocks in the region
- Place
REDSTONEnext to theSHORT_GRASS - The
SHORT_GRASSwill be destroyed
Plugin and Datapack List
[11:17:22 INFO]: Server Plugins (2):
[11:17:22 INFO]: Bukkit Plugins:
[11:17:22 INFO]: - WorldEdit, WorldGuard
Paper version
[11:16:50 INFO]: This server is running Paper version git-Paper-436 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 850b736)
You are running the latest version
Other
This bug only happens, when you use redstone-implementation: ALTERNATE_CURRENT, but when you use VANILLA as the value, it works normally.
I already contacted the developers of WorldGuard, but was told to report this bug to paper.
Affect the BlockPlaceEvent