-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update upstream to latest 1.20.1 commit * implement performance improvements from upstream 1.20.2
- Loading branch information
1 parent
3ec25d2
commit 4e5c170
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
patches/server/0017-implement-performance-improvements-from-upstream-1.2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Jendrik Eggers <[email protected]> | ||
Date: Sat, 21 Oct 2023 23:56:05 +0200 | ||
Subject: [PATCH] implement performance improvements from upstream 1.20.2 | ||
|
||
|
||
diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java | ||
index fb6cbcc4839aef7dc4bd4a49613f892b07aab353..fbb082682626c442acfcb4470209e7e1590c0f69 100644 | ||
--- a/src/main/java/net/minecraft/server/level/ChunkMap.java | ||
+++ b/src/main/java/net/minecraft/server/level/ChunkMap.java | ||
@@ -1568,7 +1568,7 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider | ||
// Paper end - check Y | ||
|
||
// CraftBukkit start - respect vanish API | ||
- if (!player.getBukkitEntity().canSee(this.entity.getBukkitEntity())) { | ||
+ if (flag && !player.getBukkitEntity().canSee(this.entity.getBukkitEntity())) { // Cheetah - only consider hits | ||
flag = false; | ||
} | ||
// CraftBukkit end |