Files
Purpur/patches/server/0147-Add-MC-4-fix-back.patch
Ben Kerllenevich 5ae3e94dec Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly
2021-08-28 08:20:37 -04:00

20 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
Date: Thu, 7 Jan 2021 07:51:25 -0600
Subject: [PATCH] Add MC-4 fix back
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
index e049dd0e1d068ab80e78fb5989979a266f132eb6..307f51ca7a27574c3b5f1bf42bac5a56bdebb949 100644
--- a/src/main/java/net/minecraft/world/entity/Entity.java
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
@@ -4076,7 +4076,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, n
// Paper end
// Paper start - fix MC-4
if (this instanceof ItemEntity) {
- if (false && com.destroystokyo.paper.PaperConfig.fixEntityPositionDesync) { // Paper - revert
+ if (com.destroystokyo.paper.PaperConfig.fixEntityPositionDesync) { // Paper - revert // Purpur
// encode/decode from PacketPlayOutEntity
x = Mth.lfloor(x * 4096.0D) * (1 / 4096.0D);
y = Mth.lfloor(y * 4096.0D) * (1 / 4096.0D);