Paper/CraftBukkit-Patches/0122-Make-moved-wrongly-limit-configurable.patch

25 lines
785 B
Diff
Raw Normal View History

2016-03-01 01:23:45 +01:00
From 56f43f705bf61748a904e04db6e560eb0281038e Mon Sep 17 00:00:00 2001
2016-02-29 22:33:06 +01:00
From: Jonas Konrad <me@yawk.at>
Date: Fri, 4 Jul 2014 23:03:13 +0200
Subject: [PATCH] Make "moved wrongly" limit configurable
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
index 921d7d5..7e774f2 100644
--- a/src/main/java/org/spigotmc/SpigotConfig.java
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
@@ -334,4 +334,10 @@ public class SpigotConfig
{
intCacheLimit = getInt( "settings.int-cache-limit", 1024 );
}
+
+ public static double movedWronglyThreshold;
+ private static void movedWronglyThreshold()
+ {
+ movedWronglyThreshold = getDouble( "settings.moved-wrongly-threshold", 0.0625D );
+ }
}
--
2.5.0