mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Update upstream
This commit is contained in:
parent
70d35b0de5
commit
61bbe8c3b3
3 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,7 @@ For consistency, the old API methods now forward to use the
|
|||
ItemMeta API equivalents, and should deprecate the old API's.
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
|
||||
index 3f11e4279..ebb3e04bc 100644
|
||||
index 3f11e427..ebb3e04b 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
|
||||
@@ -0,0 +0,0 @@ import static org.bukkit.craftbukkit.inventory.CraftMetaItem.ENCHANTMENTS;
|
||||
|
@ -144,7 +144,7 @@ index 3f11e4279..ebb3e04bc 100644
|
|||
|
||||
static Map<Enchantment, Integer> getEnchantments(net.minecraft.server.ItemStack item) {
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
index 724da6772..935cbe867 100644
|
||||
index c743ae06..0cdc8007 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 @@ import java.lang.annotation.RetentionPolicy;
|
||||
|
@ -249,6 +249,7 @@ index 724da6772..935cbe867 100644
|
|||
}
|
||||
|
||||
public boolean addEnchant(Enchantment ench, int level, boolean ignoreRestrictions) {
|
||||
Validate.notNull(ench, "Enchantment cannot be null");
|
||||
if (enchantments == null) {
|
||||
- enchantments = new HashMap<Enchantment, Integer>(4);
|
||||
+ enchantments = new EnchantmentMap(); // Paper
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 0481ae963aad545b2f1162d764bcbff18721e2f0
|
||||
Subproject commit d603539842fe24dc1b37130e47fafe734a542a69
|
|
@ -1 +1 @@
|
|||
Subproject commit 23b6354742083ff4b613da6129a70ef94ede3d90
|
||||
Subproject commit 722832861f0300f0b1e9d9079b0085bca5387ce2
|
Loading…
Reference in a new issue