Updated Upstream (CraftBukkit/Spigot)
Doesn't compile yet. CraftBukkit Changes: 90d6905b Repackage NMS 69cf961d Repackage patches Spigot Changes: 79d53c28 Repackage NMS
This commit is contained in:
@@ -22,10 +22,49 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ fixEntityPositionDesync = getBoolean("settings.fix-entity-position-desync", fixEntityPositionDesync);
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityItem.java b/src/main/java/net/minecraft/server/EntityItem.java
|
||||
diff --git a/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutEntity.java b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutEntity.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityItem.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityItem.java
|
||||
--- a/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutEntity.java
|
||||
+++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutEntity.java
|
||||
@@ -0,0 +0,0 @@ public class PacketPlayOutEntity implements Packet<PacketListenerPlayOut> {
|
||||
protected boolean i;
|
||||
|
||||
public static long a(double d0) {
|
||||
- return MathHelper.d(d0 * 4096.0D);
|
||||
+ return MathHelper.d(d0 * 4096.0D); // Paper - check EntityItem#setPositionRaw on update
|
||||
}
|
||||
|
||||
public static Vec3D a(long i, long j, long k) {
|
||||
- return (new Vec3D((double) i, (double) j, (double) k)).a(2.44140625E-4D);
|
||||
+ return (new Vec3D((double) i, (double) j, (double) k)).a(2.44140625E-4D); // Paper - check EntityItem#setPositionRaw on update
|
||||
}
|
||||
|
||||
public PacketPlayOutEntity() {}
|
||||
diff --git a/src/main/java/net/minecraft/util/MathHelper.java b/src/main/java/net/minecraft/util/MathHelper.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/util/MathHelper.java
|
||||
+++ b/src/main/java/net/minecraft/util/MathHelper.java
|
||||
@@ -0,0 +0,0 @@ import net.minecraft.core.BaseBlockPosition;
|
||||
public class MathHelper {
|
||||
|
||||
public static final float a = c(2.0F);
|
||||
- private static final float[] b = (float[]) SystemUtils.a((Object) (new float[65536]), (afloat) -> {
|
||||
+ private static final float[] b = (float[]) SystemUtils.a((new float[65536]), (afloat) -> { // Paper - decompile error
|
||||
for (int i = 0; i < afloat.length; ++i) {
|
||||
afloat[i] = (float) Math.sin((double) i * 3.141592653589793D * 2.0D / 65536.0D);
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public class MathHelper {
|
||||
return d0 < (double) i ? i - 1 : i;
|
||||
}
|
||||
|
||||
+ public static long floorLong(double d0) { return d(d0); } // Paper - OBFHELPER
|
||||
public static long d(double d0) {
|
||||
long i = (long) d0;
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/item/EntityItem.java b/src/main/java/net/minecraft/world/entity/item/EntityItem.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/item/EntityItem.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/item/EntityItem.java
|
||||
@@ -0,0 +0,0 @@ public class EntityItem extends Entity {
|
||||
public Packet<?> P() {
|
||||
return new PacketPlayOutSpawnEntity(this);
|
||||
@@ -43,42 +82,3 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+ // Paper end - fix MC-4
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/MathHelper.java b/src/main/java/net/minecraft/server/MathHelper.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/MathHelper.java
|
||||
+++ b/src/main/java/net/minecraft/server/MathHelper.java
|
||||
@@ -0,0 +0,0 @@ import java.util.function.IntPredicate;
|
||||
public class MathHelper {
|
||||
|
||||
public static final float a = c(2.0F);
|
||||
- private static final float[] b = (float[]) SystemUtils.a((Object) (new float[65536]), (afloat) -> {
|
||||
+ private static final float[] b = (float[]) SystemUtils.a((new float[65536]), (afloat) -> { // Paper - decompile error
|
||||
for (int i = 0; i < afloat.length; ++i) {
|
||||
afloat[i] = (float) Math.sin((double) i * 3.141592653589793D * 2.0D / 65536.0D);
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public class MathHelper {
|
||||
return d0 < (double) i ? i - 1 : i;
|
||||
}
|
||||
|
||||
+ public static long floorLong(double d0) { return d(d0); } // Paper - OBFHELPER
|
||||
public static long d(double d0) {
|
||||
long i = (long) d0;
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutEntity.java b/src/main/java/net/minecraft/server/PacketPlayOutEntity.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/PacketPlayOutEntity.java
|
||||
+++ b/src/main/java/net/minecraft/server/PacketPlayOutEntity.java
|
||||
@@ -0,0 +0,0 @@ public class PacketPlayOutEntity implements Packet<PacketListenerPlayOut> {
|
||||
protected boolean i;
|
||||
|
||||
public static long a(double d0) {
|
||||
- return MathHelper.d(d0 * 4096.0D);
|
||||
+ return MathHelper.d(d0 * 4096.0D); // Paper - check EntityItem#setPositionRaw on update
|
||||
}
|
||||
|
||||
public static Vec3D a(long i, long j, long k) {
|
||||
- return (new Vec3D((double) i, (double) j, (double) k)).a(2.44140625E-4D);
|
||||
+ return (new Vec3D((double) i, (double) j, (double) k)).a(2.44140625E-4D); // Paper - check EntityItem#setPositionRaw on update
|
||||
}
|
||||
|
||||
public PacketPlayOutEntity() {}
|
||||
|
||||
Reference in New Issue
Block a user