From b5b668aae7cc1cffce4d930fd20fd20d955c737a Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 26 Feb 2013 11:31:37 +1100 Subject: [PATCH] Allow small view distances. --- CraftBukkit-Patches/0032-View-distance.patch | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CraftBukkit-Patches/0032-View-distance.patch diff --git a/CraftBukkit-Patches/0032-View-distance.patch b/CraftBukkit-Patches/0032-View-distance.patch new file mode 100644 index 0000000000..a8d438928c --- /dev/null +++ b/CraftBukkit-Patches/0032-View-distance.patch @@ -0,0 +1,26 @@ +From 599b8c109e266ac0f0882157d2491137d93dfe91 Mon Sep 17 00:00:00 2001 +From: md_5 +Date: Tue, 26 Feb 2013 11:31:27 +1100 +Subject: [PATCH] View distance. + +Allow small view distances. TODO: Merge per world view distances to this. +--- + src/main/java/net/minecraft/server/PlayerChunkMap.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java +index f788a62..98d6dd2 100644 +--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java ++++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java +@@ -23,7 +23,7 @@ public class PlayerChunkMap { + public PlayerChunkMap(WorldServer worldserver, int i) { + if (i > 15) { + throw new IllegalArgumentException("Too big view radius!"); +- } else if (i < 3) { ++ } else if (i < 1) { + throw new IllegalArgumentException("Too small view radius!"); + } else { + this.e = i; +-- +1.8.1-rc2 +