mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-03-13 07:09:48 +01:00
* 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> |
||
---|---|---|
.. | ||
contrib | ||
src/main | ||
build.gradle.kts |