geforkt von Mirrors/Paper
0f2ea04c1c
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: af58d316 Fix javadoc warning in Firework.setShotAtAngle CraftBukkit Changes:e2dd6555
SPIGOT-5372: Re-add tile entity fixer due to MC-1639451e7a197f
Fix incorrect inequality in683bae0670
db98d54d
SPIGOT-5362: Suspicious stews fail isSimilar check Spigot Changes: 56f84710 Rebuild patches
26 Zeilen
1.1 KiB
Diff
26 Zeilen
1.1 KiB
Diff
From 85b0ff96e3129966a8c942376e83a27e0671342d Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Wed, 21 Sep 2016 22:54:28 -0400
|
|
Subject: [PATCH] Chunk registration fixes
|
|
|
|
World checks and the Chunk Add logic are inconsistent on how Y > 256, < 0, is treated
|
|
|
|
Keep them consistent
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
|
index 3adb43b35..5d529fccf 100644
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
|
@@ -661,7 +661,7 @@ public class WorldServer extends World {
|
|
public void chunkCheck(Entity entity) {
|
|
this.getMethodProfiler().enter("chunkCheck");
|
|
int i = MathHelper.floor(entity.locX / 16.0D);
|
|
- int j = MathHelper.floor(entity.locY / 16.0D);
|
|
+ int j = Math.min(15, Math.max(0, MathHelper.floor(entity.locY / 16.0D))); // Paper - stay consistent with chunk add/remove behavior
|
|
int k = MathHelper.floor(entity.locZ / 16.0D);
|
|
|
|
if (!entity.inChunk || entity.chunkX != i || entity.chunkY != j || entity.chunkZ != k) {
|
|
--
|
|
2.23.0
|
|
|