summaryrefslogtreecommitdiffstats
path: root/nms-patches/CommandSpreadPlayers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/CommandSpreadPlayers.patch')
-rw-r--r--nms-patches/CommandSpreadPlayers.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/nms-patches/CommandSpreadPlayers.patch b/nms-patches/CommandSpreadPlayers.patch
index 03ecb614..eb672206 100644
--- a/nms-patches/CommandSpreadPlayers.patch
+++ b/nms-patches/CommandSpreadPlayers.patch
@@ -1,9 +1,9 @@
--- a/net/minecraft/server/CommandSpreadPlayers.java
+++ b/net/minecraft/server/CommandSpreadPlayers.java
-@@ -235,9 +235,16 @@
+@@ -236,9 +236,16 @@
}
- public List<String> tabComplete(MinecraftServer minecraftserver, ICommandListener icommandlistener, String[] astring, BlockPosition blockposition) {
+ public List<String> tabComplete(MinecraftServer minecraftserver, ICommandListener icommandlistener, String[] astring, @Nullable BlockPosition blockposition) {
- return astring.length >= 1 && astring.length <= 2 ? b(astring, 0, blockposition) : Collections.emptyList();
+ return astring.length >= 1 && astring.length <= 2 ? b(astring, 0, blockposition) : Collections.<String>emptyList(); // CraftBukkit - decompile error
}
@@ -18,7 +18,7 @@
static class Location2D {
double a;
-@@ -304,7 +311,7 @@
+@@ -305,7 +312,7 @@
}
blockposition = blockposition.down();
@@ -27,7 +27,7 @@
return blockposition.getY() + 1;
}
-@@ -320,7 +327,7 @@
+@@ -321,7 +328,7 @@
}
blockposition = blockposition.down();
@@ -36,7 +36,7 @@
} while (material == Material.AIR);
return !material.isLiquid() && material != Material.FIRE;
-@@ -330,5 +337,12 @@
+@@ -331,5 +338,12 @@
this.a = MathHelper.a(random, d0, d2);
this.b = MathHelper.a(random, d1, d3);
}