@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/CommandForceload.java
|
||||
+++ b/net/minecraft/server/CommandForceload.java
|
||||
@@ -47,7 +47,7 @@
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
private static int a(CommandListenerWrapper commandlistenerwrapper, ArgumentVec2I.a argumentvec2i_a) throws CommandSyntaxException {
|
||||
ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(argumentvec2i_a.a >> 4, argumentvec2i_a.b >> 4);
|
||||
@@ -9,7 +9,7 @@
|
||||
boolean flag = commandlistenerwrapper.getServer().getWorldServer(dimensionmanager).isForceLoaded(chunkcoordintpair.x, chunkcoordintpair.z);
|
||||
|
||||
if (flag) {
|
||||
@@ -59,7 +59,7 @@
|
||||
@@ -55,7 +55,7 @@
|
||||
}
|
||||
|
||||
private static int a(CommandListenerWrapper commandlistenerwrapper) {
|
||||
@@ -18,7 +18,7 @@
|
||||
LongSet longset = commandlistenerwrapper.getServer().getWorldServer(dimensionmanager).ag();
|
||||
int i = longset.size();
|
||||
|
||||
@@ -79,12 +79,12 @@
|
||||
@@ -75,11 +75,11 @@
|
||||
}
|
||||
|
||||
private static int b(CommandListenerWrapper commandlistenerwrapper) {
|
||||
@@ -28,13 +28,11 @@
|
||||
LongSet longset = worldserver.ag();
|
||||
|
||||
- longset.forEach((i) -> {
|
||||
- worldserver.setForceLoaded(ChunkCoordIntPair.a(i), ChunkCoordIntPair.b(i), false);
|
||||
+ longset.forEach((LongConsumer) (ix) -> { // CraftBukkit - decompile error
|
||||
+ worldserver.setForceLoaded(ChunkCoordIntPair.a(ix), ChunkCoordIntPair.b(ix), false); // CraftBukkit - decompile error
|
||||
+ longset.forEach((java.util.function.LongConsumer) (i) -> { // CraftBukkit - decompile error
|
||||
worldserver.setForceLoaded(ChunkCoordIntPair.a(i), ChunkCoordIntPair.b(i), false);
|
||||
});
|
||||
commandlistenerwrapper.sendMessage(new ChatMessage("commands.forceload.removed.all", new Object[] { dimensionmanager}), true);
|
||||
return 0;
|
||||
@@ -106,7 +106,7 @@
|
||||
@@ -102,7 +102,7 @@
|
||||
if (i2 > 256L) {
|
||||
throw CommandForceload.a.create(256, i2);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user