Merge pull request #2089 from EngineHub/feat/mc-1.21 (1bfae454 by wizjany)
Fix compilation for MC 1.21. Nothing tested yet. (1bfae454 by wizjany)
Update Materials.java with 1.21 tags and materials (1bfae454 by wizjany)
Fix ItemStack conversion on block place on MC 1.21 (#2093) (1bfae454 by wizjany)
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. (1bfae454 by wizjany)
Use ItemStack as-is.
Closes #2092. (1bfae454 by wizjany)
Fix ItemStack conversion for spigot compatibility (1bfae454 by wizjany)
Special handling for WindCharges (1bfae454 by wizjany)
Do not call as a bulk event, because it has to check every blocks type (1bfae454 by wizjany)
WindCharge -> AbstractWindCharge (1bfae454 by wizjany)
Fix UseBlockFlag for multiple uses at the same time, add windburst-flag (1bfae454 by wizjany)
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> (1bfae454 by wizjany)
Handle vaults as use, crafters as chest-access. (b269d7e2 by wizjany)
Fix UseBlockFlag for multiple uses at the same time, add windburst-flag (a5ea5115 by joo200)
WindCharge -> AbstractWindCharge (83298796 by brokkonaut)
Do not call as a bulk event, because it has to check every blocks type (8aa37e38 by brokkonaut)
Special handling for WindCharges (887f3bfa by brokkonaut)
Fix ItemStack conversion for spigot compatibility (6898ad86 by joo200)
Fix ItemStack conversion on block place on MC 1.21 (#2093) (7783e9ae by lennart)
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. (7783e9ae by lennart)
Use ItemStack as-is.
Closes #2092.
---------
Co-authored-by: wizjany <wizjany@gmail.com> (7783e9ae by lennart)
Update Materials.java with 1.21 tags and materials (2bd426ba by joo200)
Fix compilation for MC 1.21. Nothing tested yet. (27f00959 by wizjany)
Fix checking bypass on initialize (#2082) (ead1e1b7 by joni aromaa)
Fix checking bypass on initialize (ead1e1b7 by joni aromaa)
Add SessionManager#createSession back as deprecated (ead1e1b7 by joni aromaa)
Fix silent flag for gameplay commands (#2081) (8b7729e0 by aurora)
Fix silent flag for gameplay commands
This issue has been fixed in CommandBook with
https://github.com/EngineHub/CommandBook/commit/644803182ed1765a9862d0a0cd0d3763d399efee
but never in WorldGuard.
Co-authored-by: Wyatt Childers <DarkArc@users.noreply.github.com> (8b7729e0 by aurora)