Update from upstream SpigotMC
Remove defensive copy in EAR SpigotMC/Spigot@f1ba1f6c07 Make "moved wrongly limit" configurable SpigotMC/Spigot@f7ab380e16 Fix null Tile Entity Worlds (we already had this) SpigotMC/Spigot@b271cdbfa0 Fix slow tab complete for some commands SpigotMC/Spigot@f3b7952c73 Only suggest ops to deop and remove whitelist add case entirely SpigotMC/Spigot@0e1fcfbe70 Allow tab complete for /whitelist add SpigotMC/Spigot@27f8aa22bd
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 72e1c5a2f9954a7dafbf3ccfc9477330df7bc861 Mon Sep 17 00:00:00 2001
|
||||
From cfcb841610de88493e4af2b87a309bfb4ea126f5 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Sun, 3 Feb 2013 05:10:21 -0500
|
||||
Subject: [PATCH] Entity Activation Range
|
||||
@@ -197,7 +197,7 @@ index 558574f..41d2d87 100644
|
||||
public static final HashMap<String, CustomTimingsHandler> pluginTaskTimingMap = new HashMap<String, CustomTimingsHandler>();
|
||||
diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
|
||||
new file mode 100644
|
||||
index 0000000..84a7dd6
|
||||
index 0000000..903172a
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/org/spigotmc/ActivationRange.java
|
||||
@@ -0,0 +1,296 @@
|
||||
@@ -327,7 +327,7 @@ index 0000000..84a7dd6
|
||||
+ maxRange = Math.max( maxRange, miscActivationRange );
|
||||
+ maxRange = Math.min( ( world.spigotConfig.viewDistance << 4 ) - 8, maxRange );
|
||||
+
|
||||
+ for ( Entity player : new ArrayList<Entity>( world.players ) )
|
||||
+ for ( Entity player : (List<Entity>) world.players )
|
||||
+ {
|
||||
+
|
||||
+ player.activatedTick = MinecraftServer.currentTick;
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
From 15597ddb21ca4af28df3fef88ed70672dc71cbd2 Mon Sep 17 00:00:00 2001
|
||||
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/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index 9a7b256..f064f6e 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -399,7 +399,8 @@ public class PlayerConnection implements PacketPlayInListener {
|
||||
d10 = d4 * d4 + d5 * d5 + d6 * d6;
|
||||
boolean flag1 = false;
|
||||
|
||||
- if (d10 > 0.0625D && !this.player.isSleeping() && !this.player.playerInteractManager.isCreative()) {
|
||||
+ // Spigot: make "moved wrongly" limit configurable
|
||||
+ if (d10 > org.spigotmc.SpigotConfig.movedWronglyThreshold && !this.player.isSleeping() && !this.player.playerInteractManager.isCreative()) {
|
||||
flag1 = true;
|
||||
c.warn(this.player.getName() + " moved wrongly!");
|
||||
}
|
||||
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
index 7998aac..2e6e172 100644
|
||||
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
@@ -327,4 +327,16 @@ public class SpigotConfig
|
||||
{
|
||||
intCacheLimit = getInt( "settings.int-cache-limit", 1024 );
|
||||
}
|
||||
+
|
||||
+ private static double getDouble(String path, double def)
|
||||
+ {
|
||||
+ config.addDefault( path, def );
|
||||
+ return config.getDouble( path, config.getDouble( path ) );
|
||||
+ }
|
||||
+
|
||||
+ public static double movedWronglyThreshold;
|
||||
+ private static void movedWronglyThreshold()
|
||||
+ {
|
||||
+ movedWronglyThreshold = getDouble( "settings.moved-wrongly-threshold", 0.0625D );
|
||||
+ }
|
||||
}
|
||||
--
|
||||
1.9.1
|
||||
|
||||
21
CraftBukkit-Patches/0163-Fix-Null-Tile-Entity-Worlds.patch
Normal file
21
CraftBukkit-Patches/0163-Fix-Null-Tile-Entity-Worlds.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
From d7749ced81fc9e90c14af68156bfe0ecbeb71a1f Mon Sep 17 00:00:00 2001
|
||||
From: "Evan A. Haskell" <eah2119@gmail.com>
|
||||
Date: Thu, 26 Jun 2014 18:37:29 -0400
|
||||
Subject: [PATCH] Fix Null Tile Entity Worlds
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||
index 3dba573..6100297 100644
|
||||
--- a/src/main/java/net/minecraft/server/World.java
|
||||
+++ b/src/main/java/net/minecraft/server/World.java
|
||||
@@ -2002,6 +2002,7 @@ public abstract class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
+ tileentity.a(this); // Spigot - No null worlds
|
||||
this.a.add(tileentity);
|
||||
} else {
|
||||
this.tileEntityList.add(tileentity);
|
||||
--
|
||||
1.9.1
|
||||
|
||||
Reference in New Issue
Block a user