Fix "MC-135506: Experience should save as Integers" still saving as short" (#1301)

This commit is contained in:
Mark Vainomaa 2018-08-03 16:25:21 +03:00 committed by Daniel Ennis
parent 3c61083c72
commit 22b2bf6270
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
From 3ee5221ba7dae7751cd0ed9cdfacbf358484ae53 Mon Sep 17 00:00:00 2001 From ac00b144ea5c59904530bae2a8697b9f05892649 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co> From: Aikar <aikar@aikar.co>
Date: Fri, 3 Aug 2018 00:04:54 -0400 Date: Fri, 3 Aug 2018 00:04:54 -0400
Subject: [PATCH] MC-135506: Experience should save as Integers Subject: [PATCH] MC-135506: Experience should save as Integers
diff --git a/src/main/java/net/minecraft/server/EntityExperienceOrb.java b/src/main/java/net/minecraft/server/EntityExperienceOrb.java diff --git a/src/main/java/net/minecraft/server/EntityExperienceOrb.java b/src/main/java/net/minecraft/server/EntityExperienceOrb.java
index 1c59fd9661..c179fe516e 100644 index 1c59fd96..becb102c 100644
--- a/src/main/java/net/minecraft/server/EntityExperienceOrb.java --- a/src/main/java/net/minecraft/server/EntityExperienceOrb.java
+++ b/src/main/java/net/minecraft/server/EntityExperienceOrb.java +++ b/src/main/java/net/minecraft/server/EntityExperienceOrb.java
@@ -193,14 +193,14 @@ public class EntityExperienceOrb extends Entity { @@ -193,14 +193,14 @@ public class EntityExperienceOrb extends Entity {
@ -13,7 +13,7 @@ index 1c59fd9661..c179fe516e 100644
nbttagcompound.setShort("Health", (short) this.d); nbttagcompound.setShort("Health", (short) this.d);
nbttagcompound.setShort("Age", (short) this.b); nbttagcompound.setShort("Age", (short) this.b);
- nbttagcompound.setShort("Value", (short) this.value); - nbttagcompound.setShort("Value", (short) this.value);
+ nbttagcompound.setInt("Value", (short) this.value); // Paper - save as Integer + nbttagcompound.setInt("Value", this.value); // Paper - save as Integer
savePaperNBT(nbttagcompound); // Paper savePaperNBT(nbttagcompound); // Paper
} }