Don't mutate the position of Items for MC-4 Fix (#12702)

This commit is contained in:
Owen
2025-06-25 15:51:26 -04:00
committed by GitHub
parent 692e93a91f
commit ea10fa4a79
5 changed files with 19 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/network/protocol/game/VecDeltaCodec.java
+++ b/net/minecraft/network/protocol/game/VecDeltaCodec.java
@@ -5,16 +_,16 @@
@@ -5,7 +_,7 @@
public class VecDeltaCodec {
private static final double TRUNCATION_STEPS = 4096.0;
@@ -9,14 +9,3 @@
@VisibleForTesting
static long encode(double value) {
- return Math.round(value * 4096.0);
+ return Math.round(value * 4096.0); // Paper - Fix MC-4; diff on change
}
@VisibleForTesting
static double decode(long value) {
- return value / 4096.0;
+ return value / 4096.0; // Paper - Fix MC-4; diff on change
}
public Vec3 decode(long x, long y, long z) {