From 4ee5d3eb316911d28cc0e7ba74eefc838f899bb7 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 13 Apr 2016 02:11:40 -0400 Subject: [PATCH] Configurable Player Collision - Resolves #161 --- .../0136-Configurable-Player-Collision.patch | 36 +++++++++++++++++++ scripts/importmcdev.sh | 1 + 2 files changed, 37 insertions(+) create mode 100644 Spigot-Server-Patches/0136-Configurable-Player-Collision.patch diff --git a/Spigot-Server-Patches/0136-Configurable-Player-Collision.patch b/Spigot-Server-Patches/0136-Configurable-Player-Collision.patch new file mode 100644 index 000000000..c7a0e6ee9 --- /dev/null +++ b/Spigot-Server-Patches/0136-Configurable-Player-Collision.patch @@ -0,0 +1,36 @@ +From e0dcc5f2cdae334820821f3c97a06867748e8026 Mon Sep 17 00:00:00 2001 +From: Aikar +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 +index cd25fb8..a07ee75 100644 +--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java ++++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java +@@ -190,4 +190,9 @@ public class PaperConfig { + 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 +index f86bf8d..766b764 100644 +--- 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