Skip to content

Commit

Permalink
Performance improvements (#11)
Browse files Browse the repository at this point in the history
* update upstream to latest 1.20.1 commit

* implement performance improvements from upstream 1.20.2
  • Loading branch information
TrainmasterHD authored Oct 22, 2023
1 parent 3ec25d2 commit 4e5c170
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group=net.gommehd.cheetah
version=1.20.1-R0.1-SNAPSHOT

mcVersion=1.20.1
paperRef=3fd1502717e753405a74fbad4a16d2fd7a14187b
paperRef=773dd724469bae89d0c2075edc3d1ddc8d5b0b18

org.gradle.caching=true
org.gradle.parallel=true
Expand Down
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

0 comments on commit 4e5c170

Please sign in to comment.