mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
check isAir instead of null
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
This commit is contained in:
parent
3bf083b762
commit
f2f39dc326
2 changed files with 5 additions and 4 deletions
|
|
@ -82,6 +82,6 @@ object ItemUtil {
|
|||
* The two items should either be the same type, or, the [other] is a book
|
||||
*/
|
||||
fun ItemStack.canMergeWith(
|
||||
other: ItemStack?
|
||||
) = (other != null) && (customType == other.customType || (other.isEnchantedBook()))
|
||||
other: ItemStack
|
||||
) = customType == other.customType || (other.isEnchantedBook())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue