aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches-Unmapped/0260-MC-135506-Experience-should-save-as-Integers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches-Unmapped/0260-MC-135506-Experience-should-save-as-Integers.patch')
-rw-r--r--Spigot-Server-Patches-Unmapped/0260-MC-135506-Experience-should-save-as-Integers.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/Spigot-Server-Patches-Unmapped/0260-MC-135506-Experience-should-save-as-Integers.patch b/Spigot-Server-Patches-Unmapped/0260-MC-135506-Experience-should-save-as-Integers.patch
new file mode 100644
index 0000000000..7c85de6290
--- /dev/null
+++ b/Spigot-Server-Patches-Unmapped/0260-MC-135506-Experience-should-save-as-Integers.patch
@@ -0,0 +1,28 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+Date: Fri, 3 Aug 2018 00:04:54 -0400
+Subject: [PATCH] MC-135506: Experience should save as Integers
+
+
+diff --git a/src/main/java/net/minecraft/world/entity/EntityExperienceOrb.java b/src/main/java/net/minecraft/world/entity/EntityExperienceOrb.java
+index 3387a19044b3ee2a1ef549c328c8bc354a5b6d23..a7551e95185895a290be70d501496279eaf884ae 100644
+--- a/src/main/java/net/minecraft/world/entity/EntityExperienceOrb.java
++++ b/src/main/java/net/minecraft/world/entity/EntityExperienceOrb.java
+@@ -218,7 +218,7 @@ public class EntityExperienceOrb extends Entity {
+ public void saveData(NBTTagCompound nbttagcompound) {
+ nbttagcompound.setShort("Health", (short) this.e);
+ nbttagcompound.setShort("Age", (short) this.c);
+- nbttagcompound.setShort("Value", (short) this.value);
++ nbttagcompound.setInt("Value", this.value); // Paper - save as Integer
+ this.savePaperNBT(nbttagcompound); // Paper
+ }
+
+@@ -226,7 +226,7 @@ public class EntityExperienceOrb extends Entity {
+ public void loadData(NBTTagCompound nbttagcompound) {
+ this.e = nbttagcompound.getShort("Health");
+ this.c = nbttagcompound.getShort("Age");
+- this.value = nbttagcompound.getShort("Value");
++ this.value = nbttagcompound.getInt("Value"); // Paper - load as Integer
+ this.loadPaperNBT(nbttagcompound); // Paper
+ }
+