summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityItem.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityItem.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/EntityItem.java b/src/main/java/net/minecraft/server/EntityItem.java
index 433616f4..11549ad8 100644
--- a/src/main/java/net/minecraft/server/EntityItem.java
+++ b/src/main/java/net/minecraft/server/EntityItem.java
@@ -120,7 +120,8 @@ public class EntityItem extends Entity {
public void b(NBTTagCompound nbttagcompound) {
nbttagcompound.setShort("Health", (short) ((byte) this.f));
nbttagcompound.setShort("Age", (short) this.age);
- if (this.itemStack != null) nbttagcompound.setCompound("Item", this.itemStack.b(new NBTTagCompound())); // CraftBukkit - Nullchex!
+ if (this.itemStack != null) // CraftBukkit - Nullchex!
+ nbttagcompound.setCompound("Item", this.itemStack.save(new NBTTagCompound()));
}
public void a(NBTTagCompound nbttagcompound) {
@@ -183,7 +184,7 @@ public class EntityItem extends Entity {
}
public String getLocalizedName() {
- if (this.itemStack == null) return LocaleI18n.a("item.unknown"); // CraftBukkit - nullcheck
- return LocaleI18n.a("item." + this.itemStack.k());
+ if (this.itemStack == null) return LocaleI18n.get("item.unknown"); // CraftBukkit - nullcheck
+ return LocaleI18n.get("item." + this.itemStack.k());
}
}