2022-06-11 04:28:30 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2022-06-19 02:42:47 +00:00
|
|
|
From: Video <videogamesm12@gmail.com>
|
2022-06-11 04:28:30 +00:00
|
|
|
Date: Fri, 10 Jun 2022 23:26:03 -0500
|
|
|
|
Subject: [PATCH] Removes useless spammy error logging
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
|
|
|
index 3c4dadd0012c11191c873fe25a7625193563915d..d8eb84f28761dce95330afc32e4c011a4ab89b18 100644
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
|
|
|
@@ -1792,8 +1792,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
|
|
|
resource = CraftNamespacedKey.fromMinecraft(key);
|
|
|
|
}
|
|
|
|
} catch (IllegalArgumentException ex) {
|
|
|
|
- org.bukkit.Bukkit.getLogger().warning("Namespaced resource does not validate: " + key.toString());
|
|
|
|
- ex.printStackTrace();
|
|
|
|
+ // Scissors - Don't log errors thrown by invalid namespaces when an error is thrown
|
|
|
|
}
|
|
|
|
|
|
|
|
return resource;
|