diff --git a/gradle.properties b/gradle.properties index da52ac9..af08cad 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/patches/server/0017-implement-performance-improvements-from-upstream-1.2.patch b/patches/server/0017-implement-performance-improvements-from-upstream-1.2.patch new file mode 100644 index 0000000..844430b --- /dev/null +++ b/patches/server/0017-implement-performance-improvements-from-upstream-1.2.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jendrik Eggers +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