aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index fdbe8c995..f73fbcdb4 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -172,16 +172,12 @@ object NEUItems {
fun getItemStackOrNull(internalName: String) = internalName.asInternalName().getItemStackOrNull()
// TODO remove
- fun getItemStack(internalName: String, definite: Boolean = false): ItemStack =
- internalName.asInternalName().getItemStack(definite)
+ fun getItemStack(internalName: String): ItemStack =
+ internalName.asInternalName().getItemStack()
- fun NEUInternalName.getItemStack(definite: Boolean = false): ItemStack =
+ fun NEUInternalName.getItemStack(): ItemStack =
getItemStackOrNull() ?: run {
if (getPriceOrNull() == null) return@run fallbackItem
-
- if (definite) {
- Utils.showOutdatedRepoNotification()
- }
ErrorManager.logError(
IllegalStateException("Something went wrong!"),
"Encountered an error getting the item for §7$this§c. " +
@@ -330,4 +326,4 @@ object NEUItems {
val jsonObject = ConfigManager.gson.fromJson(jsonString, JsonObject::class.java)
return manager.jsonToStack(jsonObject, false)
}
-} \ No newline at end of file
+}