mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: 23ee0a8a Fix issue with 0,0 chunks causing crash bc8fafb2 Updated Upstream (CraftBukkit/Spigot) ebbca5ce Drowned is a RangedEntity (fixes API for Drowned to support Ranged) 83b03eee Don't move existing players to world spawn 3b3e38fd Fix issue with loading chunk during ticking chunks issue 78431dca Update test server startup script
25 lines
950 B
Diff
25 lines
950 B
Diff
From 8c54b8a7c43cf63bc5580b53794ed11c63e3ad0e Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
Date: Sat, 28 Dec 2019 04:21:54 -0600
|
|
Subject: [PATCH] Add permission for F3+N debug
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/PlayerList.java | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
|
index 6d6fbf2f50..0d985b83d8 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
|
@@ -904,6 +904,7 @@ public abstract class PlayerList {
|
|
} else {
|
|
b0 = (byte) (24 + i);
|
|
}
|
|
+ if (b0 < 28 && entityplayer.getBukkitEntity().hasPermission("purpur.debug.f3n")) b0 = 28; // Purpur
|
|
|
|
entityplayer.playerConnection.sendPacket(new PacketPlayOutEntityStatus(entityplayer, b0));
|
|
}
|
|
--
|
|
2.24.0
|
|
|