Skip to content

Commit 4b34d72

Browse files
committed
Tick fake spectators
Signed-off-by: notstevy <notstevy@ultrabuildmc.de>
1 parent b0d9250 commit 4b34d72

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

kitpvpslime-server/minecraft-patches/sources/net/minecraft/server/level/ServerPlayer.java.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
--- a/net/minecraft/server/level/ServerPlayer.java
22
+++ b/net/minecraft/server/level/ServerPlayer.java
3+
@@ -821,7 +_,7 @@
4+
5+
public void doTick() {
6+
try {
7+
- if (valid && !this.isSpectator() || !this.touchingUnloadedChunk()) { // Paper - don't tick dead players that are not in the world currently (pending respawn)
8+
+ if (valid && this.gameMode() != GameType.SPECTATOR || !this.touchingUnloadedChunk()) { // Paper - don't tick dead players that are not in the world currently (pending respawn) // kitpvp - Fake Spectator Utility
9+
super.tick();
10+
}
11+
312
@@ -2413,7 +_,7 @@
413

514
@Override

0 commit comments

Comments
 (0)