Add Anti-Xray bypass permission

This is a frequently requested feature. The permission is
'paper.antixray.bypass'.
This commit is contained in:
stonar96
2020-08-07 08:11:56 +02:00
parent 96fc8c1353
commit 0367dabcb2
4 changed files with 45 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ apacket = new Packet[10];
+ }
+ // Paper end
apacket[0] = new PacketPlayOutMapChunk(chunk, 65535);
apacket[0] = new PacketPlayOutMapChunk(chunk, 65535, chunk.world.chunkPacketBlockController.shouldModify(entityplayer, chunk, 65535)); // Paper - Anti-Xray - Bypass
apacket[1] = new PacketPlayOutLightUpdate(chunk.getPos(), this.lightEngine, true);
+
+ // Paper start - Fix MC-162253