mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 17:07:34 +01:00
Don't print utterly useless brig exception
This commit is contained in:
parent
e64ac41fe2
commit
9a47cf1834
@ -5,7 +5,7 @@ Subject: [PATCH] Implement an API for CanPlaceOn and CanDestroy NBT values
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||||
index 2244a3c61f4effd365ed5fc010ecd1a4858b53a8..59bb47ab215e83ca5446621cae1e3fa4a02f7d6f 100644
|
index 2244a3c61f4effd365ed5fc010ecd1a4858b53a8..a7e53dcc2769148a8a74db999666bb40aad94720 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||||
@@ -83,6 +83,12 @@ import org.bukkit.persistence.PersistentDataContainer;
|
@@ -83,6 +83,12 @@ import org.bukkit.persistence.PersistentDataContainer;
|
||||||
@ -253,7 +253,7 @@ index 2244a3c61f4effd365ed5fc010ecd1a4858b53a8..59bb47ab215e83ca5446621cae1e3fa4
|
|||||||
// Paper end
|
// Paper end
|
||||||
CraftMetaCompass.LODESTONE_DIMENSION.NBT,
|
CraftMetaCompass.LODESTONE_DIMENSION.NBT,
|
||||||
CraftMetaCompass.LODESTONE_POS.NBT,
|
CraftMetaCompass.LODESTONE_POS.NBT,
|
||||||
@@ -1480,4 +1623,147 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
@@ -1480,4 +1623,146 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
||||||
}
|
}
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
@ -353,7 +353,6 @@ index 2244a3c61f4effd365ed5fc010ecd1a4858b53a8..59bb47ab215e83ca5446621cae1e3fa4
|
|||||||
+ try {
|
+ try {
|
||||||
+ blockParser = blockParser.parse(false);
|
+ blockParser = blockParser.parse(false);
|
||||||
+ } catch (com.mojang.brigadier.exceptions.CommandSyntaxException e) {
|
+ } catch (com.mojang.brigadier.exceptions.CommandSyntaxException e) {
|
||||||
+ e.printStackTrace();
|
|
||||||
+ return null;
|
+ return null;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user