diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt index 14bb25231..53e810483 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -227,5 +227,7 @@ object ItemUtils { return pair } - fun NEUInternalName.getItemName() = getItemStack().name ?: error("No item name found for $this") + fun NEUInternalName.getItemNameOrNull() = getItemStack().name + + fun NEUInternalName.getItemName() = getItemNameOrNull() ?: error("No item name found for $this") }
\ No newline at end of file |