mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Fix the 'Remove uneeded validation' patch
Looks like it may have been broken during the 1.8 update (or it was always broken)
This commit is contained in:
parent
1c6f7636d8
commit
6f8cdbf0f4
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,15 @@ diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b
|
|||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
@@ -0,0 +0,0 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
||||
this.lore = new ArrayList<String>(meta.lore);
|
||||
}
|
||||
|
||||
- if (meta.hasEnchants()) {
|
||||
+ if (meta.enchantments != null) { // Spigot
|
||||
this.enchantments = new HashMap<Enchantment, Integer>(meta.enchantments);
|
||||
}
|
||||
|
||||
@@ -0,0 +0,0 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue