Player flag is build-checked (default false) and breeze flag is not (default true).
Having multiple flags is ugly but if we need every bit of behavior to be manipulable this is the only way.
* Fix compilation for MC 1.21. Nothing tested yet.
* Update Materials.java with 1.21 tags and materials
* Fix ItemStack conversion on block place on MC 1.21 (#2093)
* Fix ItemStack conversion on block place
This issue is present in 1.21 because some materials do not convert 1:1 to item types.
This throws an exception in the ItemStack constructor.
Example: WALL_TORCH is a valid block but not a valid item, only TORCH is a valid item.
So, use the item in hand instead, creating a copy with quantity set to 1, for issueing the
use item event.
* Use ItemStack as-is.
Closes#2092.
* Fix ItemStack conversion for spigot compatibility
* Special handling for WindCharges
* Do not call as a bulk event, because it has to check every blocks type
* WindCharge -> AbstractWindCharge
* Fix UseBlockFlag for multiple uses at the same time, add windburst-flag
* Cleanup code
* Handle vaults as use, crafters as chest-access.
---------
Co-authored-by: Joo200 <github@joo200.de>
Co-authored-by: Lennart <1535717+lenis0012@users.noreply.github.com>
Co-authored-by: Brokkonaut <hannos17@gmx.de>
* Fix ItemStack conversion on block place
This issue is present in 1.21 because some materials do not convert 1:1 to item types.
This throws an exception in the ItemStack constructor.
Example: WALL_TORCH is a valid block but not a valid item, only TORCH is a valid item.
So, use the item in hand instead, creating a copy with quantity set to 1, for issueing the
use item event.
* Use ItemStack as-is.
Closes#2092.
---------
Co-authored-by: wizjany <wizjany@gmail.com>
* Fix silent flag for gameplay commands
This issue has been fixed in CommandBook with
644803182e
but never in WorldGuard.
Co-authored-by: Wyatt Childers <DarkArc@users.noreply.github.com>
* codestyle