2016-06-23 04:43:02 +02:00
|
|
|
From a5ffdd4c67dcea575adf72616c30225d80ed31a1 Mon Sep 17 00:00:00 2001
|
2016-04-13 08:11:40 +02:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Wed, 13 Apr 2016 02:10:49 -0400
|
|
|
|
Subject: [PATCH] Configurable Player Collision
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
2016-06-09 05:57:14 +02:00
|
|
|
index 22c7dea..24fb01c 100644
|
2016-04-13 08:11:40 +02:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
2016-05-02 05:54:08 +02:00
|
|
|
@@ -218,4 +218,9 @@ public class PaperConfig {
|
2016-04-13 08:11:40 +02:00
|
|
|
private static void regionFileCacheSize() {
|
|
|
|
regionFileCacheSize = getInt("settings.region-file-cache-size", 256);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean enablePlayerCollisions = true;
|
|
|
|
+ private static void enablePlayerCollisions() {
|
|
|
|
+ enablePlayerCollisions = getBoolean("settings.enable-player-collisions", true);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutScoreboardTeam.java b/src/main/java/net/minecraft/server/PacketPlayOutScoreboardTeam.java
|
2016-06-09 05:57:14 +02:00
|
|
|
index d8ec504..eb45d3c 100644
|
2016-04-13 08:11:40 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutScoreboardTeam.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutScoreboardTeam.java
|
|
|
|
@@ -96,7 +96,7 @@ public class PacketPlayOutScoreboardTeam implements Packet<PacketListenerPlayOut
|
|
|
|
packetdataserializer.a(this.d);
|
|
|
|
packetdataserializer.writeByte(this.j);
|
|
|
|
packetdataserializer.a(this.e);
|
|
|
|
- packetdataserializer.a(this.f);
|
|
|
|
+ packetdataserializer.a(!com.destroystokyo.paper.PaperConfig.enablePlayerCollisions ? "never" : this.f); // Paper
|
|
|
|
packetdataserializer.writeByte(this.g);
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2016-06-23 04:18:41 +02:00
|
|
|
2.9.0
|
2016-04-13 08:11:40 +02:00
|
|
|
|