Merge pull request #2115 from EngineHub/feature/fix-breeze-stuff
Optimize and cleanup explosion events from entities
Fixes #2099 and #2097 (0f3ea504 by wizjany)
Split wind charge into breeze/player flags.
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. (679b5694 by wizjany)
Fix wind-charge-burst flag for player knockback (9dd7d7c0 by joo200)
Check mob-damage for potion splashes from e.g. witches.
Note that bypass bypasses this if the player with bypass is the target of the potion, but only for the player with bypass.
Fixes #2134. (b73a0a71 by wizjany)
Workaround books no longer sending change block for lecterns.
Fixes #2124. (2ea50689 by wizjany)
Extend use flag to all (trap)doors.
There's no tag which has wood+copper, but iron are not interactable anyway.
Relates to #2130. (aa46529e by wizjany)
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)