NF! 1.13 - more fixes

This commit is contained in:
Shane Freeder
2018-07-19 00:31:45 +01:00
parent 20e3b69061
commit aea45cba34
5 changed files with 22 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ Currently the server only supports the English language. To override this,
You must replace the language file embedded in the server jar.
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java
index 27a264f54..6fc0ce050 100644
index 27a264f54..1cdbdf6d0 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java
@@ -0,0 +0,0 @@ public final class CraftItemFactory implements ItemFactory {
@@ -26,7 +26,7 @@ index 27a264f54..6fc0ce050 100644
+ nms = CraftItemStack.asNMSCopy(item);
+ }
+
+ return nms != null ? nms.getName() : null;
+ return nms != null ? nms.getItem().getName() : null;
+ }
// Paper end
}