mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly Paper Changes: 9788250b1 Clean up a lot of obfuscation helpers and impls 58a745eba Fix scoreboard vanilla colors not working in chat
This commit is contained in:
@@ -1623,19 +1623,19 @@ index ed9b2f9adf..d54bf71409 100644
|
||||
return d0 >= this.minX && d0 < this.maxX && d1 >= this.minY && d1 < this.maxY && d2 >= this.minZ && d2 < this.maxZ;
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/BaseBlockPosition.java b/src/main/java/net/minecraft/server/BaseBlockPosition.java
|
||||
index 1842e69839..dab89b0c69 100644
|
||||
index 3b0c8971c6..4816493c6a 100644
|
||||
--- a/src/main/java/net/minecraft/server/BaseBlockPosition.java
|
||||
+++ b/src/main/java/net/minecraft/server/BaseBlockPosition.java
|
||||
@@ -16,9 +16,9 @@ public class BaseBlockPosition implements Comparable<BaseBlockPosition> {
|
||||
return IntStream.of(new int[]{baseblockposition.getX(), baseblockposition.getY(), baseblockposition.getZ()});
|
||||
});
|
||||
public static final BaseBlockPosition ZERO = new BaseBlockPosition(0, 0, 0);
|
||||
- private int a;
|
||||
- private int b;
|
||||
- private int e;
|
||||
+ protected int a; // Tuinity - private->protected - diff on change, this is the x coordinate
|
||||
+ protected int b; // Tuinity - private->protected - diff on change, this is the y coordinate
|
||||
+ protected int e; // Tuinity - private->protected - diff on change, this is the z coordinate
|
||||
- private int a;public final void setX(final int x) { this.a = x; } // Paper - OBFHELPER
|
||||
- private int b;public final void setY(final int y) { this.b = y; } // Paper - OBFHELPER
|
||||
- private int e;public final void setZ(final int z) { this.e = z; } // Paper - OBFHELPER
|
||||
+ protected int a;public final void setX(final int x) { this.a = x; } // Paper - OBFHELPER // Tuinity - private->protected
|
||||
+ protected int b;public final void setY(final int y) { this.b = y; } // Paper - OBFHELPER // Tuinity - private->protected
|
||||
+ protected int e;public final void setZ(final int z) { this.e = z; } // Paper - OBFHELPER // Tuinity - private->protected
|
||||
|
||||
// Paper start
|
||||
public boolean isValidLocation() {
|
||||
@@ -1682,7 +1682,7 @@ index db198811dd..52ebdfcc03 100644
|
||||
if (biomebase_a.a != null && biomebase_a.b != null && biomebase_a.c != null && biomebase_a.d != null && biomebase_a.e != null && biomebase_a.f != null && biomebase_a.g != null && biomebase_a.j != null) {
|
||||
this.m = biomebase_a.a;
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockBase.java b/src/main/java/net/minecraft/server/BlockBase.java
|
||||
index ff770a3b0e..12027ecad7 100644
|
||||
index 7b0cc78334..a53e096515 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockBase.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockBase.java
|
||||
@@ -176,8 +176,8 @@ public abstract class BlockBase {
|
||||
@@ -1902,19 +1902,17 @@ index 4bf66420f5..bf76615d72 100644
|
||||
|
||||
@Override
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockPosition.java b/src/main/java/net/minecraft/server/BlockPosition.java
|
||||
index 8c2a4b57ab..7ff4948a47 100644
|
||||
index a2ee39b7ef..7bdefff433 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockPosition.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockPosition.java
|
||||
@@ -386,11 +386,11 @@ public class BlockPosition extends BaseBlockPosition {
|
||||
return super.a(enumblockrotation).immutableCopy();
|
||||
@@ -387,10 +387,10 @@ public class BlockPosition extends BaseBlockPosition {
|
||||
}
|
||||
|
||||
- public BlockPosition.MutableBlockPosition setValues(int i, int j, int k) { return d(i, j, k);} // Paper - OBFHELPER
|
||||
public final BlockPosition.MutableBlockPosition setValues(int i, int j, int k) { return d(i, j, k);} // Paper - OBFHELPER
|
||||
- public BlockPosition.MutableBlockPosition d(int i, int j, int k) {
|
||||
- this.o(i);
|
||||
- this.p(j);
|
||||
- this.q(k);
|
||||
+ public final BlockPosition.MutableBlockPosition setValues(int i, int j, int k) { return d(i, j, k);} // Paper - OBFHELPER // Tuinity
|
||||
+ public final BlockPosition.MutableBlockPosition d(int i, int j, int k) { // Tuinity
|
||||
+ ((BaseBlockPosition)this).a = i; // Tuinity - force inline
|
||||
+ ((BaseBlockPosition)this).b = j; // Tuinity - force inline
|
||||
@@ -1959,52 +1957,35 @@ index 8c2a4b57ab..7ff4948a47 100644
|
||||
}
|
||||
|
||||
public BlockPosition.MutableBlockPosition c(EnumDirection enumdirection, int i) {
|
||||
@@ -445,22 +454,31 @@ public class BlockPosition extends BaseBlockPosition {
|
||||
@@ -445,21 +454,19 @@ public class BlockPosition extends BaseBlockPosition {
|
||||
}
|
||||
}
|
||||
|
||||
- public final void setX(final int x) { super.o(x); } // Paper - OBFHELPER
|
||||
- /* // Paper start - comment out useless overrides @Override
|
||||
- @Override
|
||||
- public void o(int i) {
|
||||
- super.o(i);
|
||||
+ // Tuinity start
|
||||
+ public final void setX(int value) {
|
||||
+ ((BaseBlockPosition)this).a = value;
|
||||
+ }
|
||||
+ public final void setY(int value) {
|
||||
+ ((BaseBlockPosition)this).b = value;
|
||||
public void o(int i) {
|
||||
- super.o(i);
|
||||
+ setX(i);
|
||||
}
|
||||
+ public final void setZ(int value) {
|
||||
+ ((BaseBlockPosition)this).e = value;
|
||||
+ }
|
||||
|
||||
- @Override
|
||||
public void p(int i) {
|
||||
- super.p(i);
|
||||
+ setY(i);
|
||||
}
|
||||
|
||||
public void q(int i) {
|
||||
- super.q(i);
|
||||
+ setZ(i);
|
||||
}
|
||||
- */ // Paper end
|
||||
+ // Tuinity end
|
||||
|
||||
- public final void setY(final int y) { super.p(y); } // Paper - OBFHELPER
|
||||
- @Override
|
||||
- public void p(int i) {
|
||||
- super.p(i);
|
||||
+ // Tuinity - moved up
|
||||
+ public final void o(int i) { // Tuinity
|
||||
+ ((BaseBlockPosition)this).a = i; // need cast thanks to name conflict
|
||||
}
|
||||
|
||||
- public final void setZ(final int z) { super.q(z); } // Paper - OBFHELPER
|
||||
- @Override
|
||||
- public void q(int i) {
|
||||
- super.q(i);
|
||||
+ // Tuinity - moved up
|
||||
+ public final void p(int i) { // Tuinity
|
||||
+ ((BaseBlockPosition)this).b = i; // Tuinity
|
||||
+ }
|
||||
+
|
||||
+ // Tuinity - moved up
|
||||
+ public final void q(int i) { // Tuinity
|
||||
+ ((BaseBlockPosition)this).e = i; // Tuinity
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockPosition immutableCopy() {
|
||||
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
|
||||
index 84dc89d961..09b8f9a3f6 100644
|
||||
index 7e8e154733..9d313fdefe 100644
|
||||
--- a/src/main/java/net/minecraft/server/Chunk.java
|
||||
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
||||
@@ -375,7 +375,7 @@ public class Chunk implements IChunkAccess {
|
||||
@@ -2112,7 +2093,7 @@ index 84dc89d961..09b8f9a3f6 100644
|
||||
int j = MathHelper.floor((axisalignedbb.maxY + 2.0D) / 16.0D);
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ChunkMapDistance.java b/src/main/java/net/minecraft/server/ChunkMapDistance.java
|
||||
index 893c0085bc..d83d3b54d3 100644
|
||||
index eaed04f786..25086275f4 100644
|
||||
--- a/src/main/java/net/minecraft/server/ChunkMapDistance.java
|
||||
+++ b/src/main/java/net/minecraft/server/ChunkMapDistance.java
|
||||
@@ -31,7 +31,7 @@ public abstract class ChunkMapDistance {
|
||||
@@ -2740,7 +2721,7 @@ index ac58fcb798..742c59cb05 100644
|
||||
nbttagcompound1.setString("Status", ichunkaccess.getChunkStatus().d());
|
||||
ChunkConverter chunkconverter = ichunkaccess.p();
|
||||
diff --git a/src/main/java/net/minecraft/server/ChunkSection.java b/src/main/java/net/minecraft/server/ChunkSection.java
|
||||
index 8d45588ecf..4ab7419855 100644
|
||||
index 3588fe1001..cf54336b86 100644
|
||||
--- a/src/main/java/net/minecraft/server/ChunkSection.java
|
||||
+++ b/src/main/java/net/minecraft/server/ChunkSection.java
|
||||
@@ -96,6 +96,7 @@ public class ChunkSection {
|
||||
@@ -2752,7 +2733,7 @@ index 8d45588ecf..4ab7419855 100644
|
||||
return this.nonEmptyBlockCount == 0;
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/ChunkStatus.java b/src/main/java/net/minecraft/server/ChunkStatus.java
|
||||
index 36c2651229..dd8a3dc4fe 100644
|
||||
index 7948b915bf..7e32a2eab9 100644
|
||||
--- a/src/main/java/net/minecraft/server/ChunkStatus.java
|
||||
+++ b/src/main/java/net/minecraft/server/ChunkStatus.java
|
||||
@@ -109,7 +109,7 @@ public class ChunkStatus {
|
||||
@@ -2774,7 +2755,7 @@ index 36c2651229..dd8a3dc4fe 100644
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/DataBits.java b/src/main/java/net/minecraft/server/DataBits.java
|
||||
index 235c9ec37c..dba3c407c1 100644
|
||||
index e65fe633f5..ed817893e6 100644
|
||||
--- a/src/main/java/net/minecraft/server/DataBits.java
|
||||
+++ b/src/main/java/net/minecraft/server/DataBits.java
|
||||
@@ -52,6 +52,7 @@ public class DataBits {
|
||||
@@ -2802,7 +2783,7 @@ index 235c9ec37c..dba3c407c1 100644
|
||||
//Validate.inclusiveBetween(0L, (long) (this.e - 1), (long) i); // Paper
|
||||
int j = this.b(i);
|
||||
diff --git a/src/main/java/net/minecraft/server/DataPaletteBlock.java b/src/main/java/net/minecraft/server/DataPaletteBlock.java
|
||||
index 1cb45f97b6..e60ad41b22 100644
|
||||
index 95ef962868..73163b417a 100644
|
||||
--- a/src/main/java/net/minecraft/server/DataPaletteBlock.java
|
||||
+++ b/src/main/java/net/minecraft/server/DataPaletteBlock.java
|
||||
@@ -163,6 +163,7 @@ public class DataPaletteBlock<T> implements DataPaletteExpandable<T> {
|
||||
@@ -2839,7 +2820,7 @@ index 550232cb38..229c3b0f0c 100644
|
||||
throwable = throwable1;
|
||||
throw throwable1;
|
||||
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
||||
index 9c4b02d776..3db19a9bab 100644
|
||||
index 5a8bcd91dc..db62601ea7 100644
|
||||
--- a/src/main/java/net/minecraft/server/Entity.java
|
||||
+++ b/src/main/java/net/minecraft/server/Entity.java
|
||||
@@ -136,7 +136,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||
@@ -3118,7 +3099,7 @@ index 9c4b02d776..3db19a9bab 100644
|
||||
int j = MathHelper.floor(d1);
|
||||
int k = MathHelper.floor(d2);
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
index b5c595a4b5..8a773d7de4 100644
|
||||
index 1a61bc7c8a..b114346837 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
@@ -2832,7 +2832,11 @@ public abstract class EntityLiving extends Entity {
|
||||
@@ -3364,7 +3345,7 @@ index b98e60772b..e0bbfe1422 100644
|
||||
while (objectiterator.hasNext()) {
|
||||
entry = (Entry) objectiterator.next();
|
||||
diff --git a/src/main/java/net/minecraft/server/MCUtil.java b/src/main/java/net/minecraft/server/MCUtil.java
|
||||
index e9cedbc8b6..a29d54c775 100644
|
||||
index 87810f007a..8238306d9b 100644
|
||||
--- a/src/main/java/net/minecraft/server/MCUtil.java
|
||||
+++ b/src/main/java/net/minecraft/server/MCUtil.java
|
||||
@@ -48,6 +48,20 @@ public final class MCUtil {
|
||||
@@ -3389,7 +3370,7 @@ index e9cedbc8b6..a29d54c775 100644
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
index 67a6fc68c6..bb54a4aa71 100644
|
||||
index 3130c68e73..d6b1cb8c48 100644
|
||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
@@ -987,7 +987,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
@@ -3618,7 +3599,7 @@ index e6dc5b9ce1..345e3abdd9 100644
|
||||
Vec3D vec3d = new Vec3D(((double) pathpoint.a + this.a.locX()) / 2.0D, ((double) pathpoint.b + this.a.locY()) / 2.0D, ((double) pathpoint.c + this.a.locZ()) / 2.0D);
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
index d5cc2af83a..327bb3e744 100644
|
||||
index eb28c4df8d..54e374cc94 100644
|
||||
--- a/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
+++ b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
@@ -71,6 +71,39 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
@@ -4022,7 +4003,7 @@ index c14cdb6024..8ec21eb955 100644
|
||||
if (chunk != null) {
|
||||
playerchunkmap.callbackExecutor.execute(() -> {
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||
index 0c70689f52..5fecf514ee 100644
|
||||
index 5c5ee28f23..46d8beae87 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||
@@ -119,31 +119,28 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -4132,7 +4113,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
}
|
||||
// Paper start - Chunk Prioritization
|
||||
public void queueHolderUpdate(PlayerChunk playerchunk) {
|
||||
@@ -754,6 +780,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -753,6 +779,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
|
||||
@Nullable
|
||||
private PlayerChunk a(long i, int j, @Nullable PlayerChunk playerchunk, int k) {
|
||||
@@ -4140,7 +4121,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
if (k > PlayerChunkMap.GOLDEN_TICKET && j > PlayerChunkMap.GOLDEN_TICKET) {
|
||||
return playerchunk;
|
||||
} else {
|
||||
@@ -776,6 +803,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -775,6 +802,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
playerchunk.a(j);
|
||||
} else {
|
||||
playerchunk = new PlayerChunk(new ChunkCoordIntPair(i), j, this.lightEngine, this.p, this);
|
||||
@@ -4148,7 +4129,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
}
|
||||
|
||||
this.updatingChunks.put(i, playerchunk);
|
||||
@@ -967,7 +995,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -966,7 +994,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
}
|
||||
|
||||
com.destroystokyo.paper.io.PaperFileIOThread.Holder.INSTANCE.scheduleSave(this.world, chunkPos.x, chunkPos.z,
|
||||
@@ -4157,7 +4138,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
|
||||
if (!chunk.isNeedsSaving()) {
|
||||
return;
|
||||
@@ -1001,7 +1029,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -1000,7 +1028,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
asyncSaveData = ChunkRegionLoader.getAsyncSaveData(this.world, chunk);
|
||||
}
|
||||
|
||||
@@ -4166,7 +4147,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
asyncSaveData, chunk);
|
||||
|
||||
chunk.setLastSaved(this.world.getTime());
|
||||
@@ -1040,6 +1068,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -1039,6 +1067,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
this.lightEngine.a(ichunkaccess.getPos());
|
||||
this.lightEngine.queueUpdate();
|
||||
this.worldLoadListener.a(ichunkaccess.getPos(), (ChunkStatus) null);
|
||||
@@ -4174,7 +4155,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1056,6 +1085,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -1055,6 +1084,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
}
|
||||
|
||||
protected boolean b() {
|
||||
@@ -4182,7 +4163,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
if (!this.updatingChunksModified) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -1243,7 +1273,10 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -1242,7 +1272,10 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
}
|
||||
// Paper end
|
||||
this.mailboxWorldGen.a(ChunkTaskQueueSorter.a(playerchunk, runnable));
|
||||
@@ -4194,7 +4175,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
}
|
||||
|
||||
protected void c(ChunkCoordIntPair chunkcoordintpair) {
|
||||
@@ -1495,6 +1528,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -1494,6 +1527,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
}
|
||||
|
||||
public void setViewDistance(int i) { // Paper - public
|
||||
@@ -4202,7 +4183,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
int j = MathHelper.clamp(i + 1, 3, 33); // Paper - diff on change, these make the lower view distance limit 2 and the upper 32
|
||||
|
||||
if (j != this.viewDistance) {
|
||||
@@ -1508,6 +1542,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -1507,6 +1541,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
|
||||
// Paper start - no-tick view distance
|
||||
public final void setNoTickViewDistance(int viewDistance) {
|
||||
@@ -4210,7 +4191,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
viewDistance = viewDistance == -1 ? -1 : MathHelper.clamp(viewDistance, 2, 32);
|
||||
|
||||
this.noTickViewDistance = viewDistance;
|
||||
@@ -2034,23 +2069,20 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
@@ -2033,23 +2068,20 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
private final void processTrackQueue() {
|
||||
this.world.timings.tracker1.startTiming();
|
||||
try {
|
||||
@@ -4245,7 +4226,7 @@ index 0c70689f52..5fecf514ee 100644
|
||||
// Paper end - optimised tracker
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index 19be6a93cf..bf603ba34f 100644
|
||||
index 84b9c31cc1..82a5658425 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -322,19 +322,24 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
||||
@@ -4569,7 +4550,7 @@ index 3b03c28ee5..6ac9f437e8 100644
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/RegionFile.java b/src/main/java/net/minecraft/server/RegionFile.java
|
||||
index 93797395c3..6928b1730f 100644
|
||||
index 939b518266..7f2382a895 100644
|
||||
--- a/src/main/java/net/minecraft/server/RegionFile.java
|
||||
+++ b/src/main/java/net/minecraft/server/RegionFile.java
|
||||
@@ -28,14 +28,349 @@ public class RegionFile implements AutoCloseable {
|
||||
@@ -6293,7 +6274,7 @@ index 1fa7061f7a..52aee91d2d 100644
|
||||
return voxelshape != b() && voxelshape1 != b() ? (voxelshape.isEmpty() && voxelshape1.isEmpty() ? false : !c(b(), b(voxelshape, voxelshape1, OperatorBoolean.OR), OperatorBoolean.ONLY_FIRST)) : true;
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||
index 5f81997db7..4a956f3681 100644
|
||||
index a173d2562e..21f34b82f0 100644
|
||||
--- a/src/main/java/net/minecraft/server/World.java
|
||||
+++ b/src/main/java/net/minecraft/server/World.java
|
||||
@@ -94,6 +94,8 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
@@ -6370,7 +6351,7 @@ index 5f81997db7..4a956f3681 100644
|
||||
IBlockData iblockdata = newBlock;
|
||||
IBlockData iblockdata1 = oldBlock;
|
||||
IBlockData iblockdata2 = actualBlock;
|
||||
@@ -941,6 +970,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
@@ -936,6 +965,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
return;
|
||||
// Paper end
|
||||
}
|
||||
@@ -6378,7 +6359,7 @@ index 5f81997db7..4a956f3681 100644
|
||||
}
|
||||
// Paper start - Prevent armor stands from doing entity lookups
|
||||
@Override
|
||||
@@ -1036,7 +1066,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
@@ -1031,7 +1061,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
while (iterator.hasNext()) {
|
||||
TileEntity tileentity1 = (TileEntity) iterator.next();
|
||||
|
||||
@@ -6387,7 +6368,7 @@ index 5f81997db7..4a956f3681 100644
|
||||
tileentity1.an_();
|
||||
iterator.remove();
|
||||
}
|
||||
@@ -1125,6 +1155,11 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
@@ -1120,6 +1150,11 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
public List<Entity> getHardCollidingEntities(@Nullable Entity entity, AxisAlignedBB axisalignedbb, Predicate<Entity> predicate) {
|
||||
// copied from below
|
||||
List<Entity> list = Lists.newArrayList();
|
||||
@@ -6399,7 +6380,7 @@ index 5f81997db7..4a956f3681 100644
|
||||
int i = MathHelper.floor((axisalignedbb.minX - 2.0D) / 16.0D);
|
||||
int j = MathHelper.floor((axisalignedbb.maxX + 2.0D) / 16.0D);
|
||||
int k = MathHelper.floor((axisalignedbb.minZ - 2.0D) / 16.0D);
|
||||
@@ -1148,8 +1183,13 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
@@ -1143,8 +1178,13 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
|
||||
@Override
|
||||
public List<Entity> getEntities(@Nullable Entity entity, AxisAlignedBB axisalignedbb, @Nullable Predicate<? super Entity> predicate) {
|
||||
@@ -7441,7 +7422,7 @@ index 6282a05ae8..d434bd93bc 100644
|
||||
public void restart() {
|
||||
org.spigotmc.RestartCommand.restart();
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
||||
index ca0ca5e407..e8bbe1545e 100644
|
||||
index ca0ca5e407..87e634482d 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
||||
@@ -336,6 +336,14 @@ public class CraftWorld implements World {
|
||||
@@ -7479,7 +7460,7 @@ index ca0ca5e407..e8bbe1545e 100644
|
||||
org.spigotmc.AsyncCatcher.catchOp("chunk unload"); // Spigot
|
||||
if (isChunkLoaded(x, z)) {
|
||||
world.getChunkProvider().removeTicket(TicketType.PLUGIN, new ChunkCoordIntPair(x, z), 0, Unit.INSTANCE); // Paper
|
||||
+ ((ChunkMapDistance)world.getChunkProvider().playerChunkMap.getChunkMapDistanceManager()).removeTickets(ChunkCoordIntPair.pair(x, z), TicketType.DELAYED_UNLOAD); // Tuinity - delay chunk unloads - let plugins override
|
||||
+ ((ChunkMapDistance)world.getChunkProvider().playerChunkMap.chunkDistanceManager).removeTickets(ChunkCoordIntPair.pair(x, z), TicketType.DELAYED_UNLOAD); // Tuinity - delay chunk unloads - let plugins override
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user