mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
Fix "MC-135506: Experience should save as Integers" still saving as short" (#1301)
This commit is contained in:
parent
9dde9d710e
commit
6116576bf3
@ -5,7 +5,7 @@ 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
|
||||||
@@ -0,0 +0,0 @@ public class EntityExperienceOrb extends Entity {
|
@@ -0,0 +0,0 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user