2022-07-28 03:57:50 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2023-12-10 23:00:20 +00:00
|
|
|
From: Telesphoreo <me@telesphoreo.me>
|
|
|
|
Date: Sun, 10 Dec 2023 16:58:55 -0600
|
2022-07-28 03:57:50 +00:00
|
|
|
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
|
2024-01-07 20:19:55 +00:00
|
|
|
index 91bbea5cb169f96910cc8661151c04dbff057091..84c9f2b09576046c138a11a835c9192a6e347c1d 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
2024-01-07 20:19:55 +00:00
|
|
|
@@ -1805,8 +1805,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
2022-07-28 03:57:50 +00:00
|
|
|
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;
|