mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
even more patches
This commit is contained in:
parent
3f5a9d4a29
commit
c03b8b99e3
@ -31,7 +31,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/src/main/java/net/minecraft/network/PacketEncoder.java
|
--- a/src/main/java/net/minecraft/network/PacketEncoder.java
|
||||||
+++ b/src/main/java/net/minecraft/network/PacketEncoder.java
|
+++ b/src/main/java/net/minecraft/network/PacketEncoder.java
|
||||||
@@ -0,0 +0,0 @@ public class PacketEncoder extends MessageToByteEncoder<Packet<?>> {
|
@@ -0,0 +0,0 @@ public class PacketEncoder extends MessageToByteEncoder<Packet<?>> {
|
||||||
throw var9;
|
throw var10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
@ -100,13 +100,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@Override
|
@Override
|
||||||
public void write(FriendlyByteBuf buf) {
|
public void write(FriendlyByteBuf buf) {
|
||||||
buf.writeByte(this.containerId);
|
buf.writeByte(this.containerId);
|
||||||
diff --git a/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacket.java b/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacket.java
|
diff --git a/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java b/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacket.java
|
--- a/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java
|
||||||
+++ b/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacket.java
|
+++ b/src/main/java/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java
|
||||||
@@ -0,0 +0,0 @@ public class ClientboundLevelChunkPacket implements Packet<ClientGamePacketListe
|
@@ -0,0 +0,0 @@ public class ClientboundLevelChunkPacketData {
|
||||||
|
throw new RuntimeException("Can't read heightmap in packet for [" + x + ", " + z + "]");
|
||||||
} else {
|
} else {
|
||||||
this.biomes = buf.readVarIntArray(ChunkBiomeContainer.MAX_SIZE);
|
|
||||||
int i = buf.readVarInt();
|
int i = buf.readVarInt();
|
||||||
- if (i > 2097152) {
|
- if (i > 2097152) {
|
||||||
+ if (i > 2097152) { // Paper - diff on change - if this changes, update PacketEncoder
|
+ if (i > 2097152) { // Paper - diff on change - if this changes, update PacketEncoder
|
@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@@ -0,0 +0,0 @@ public interface BlockGetter extends LevelHeightAccessor {
|
@@ -0,0 +0,0 @@ public interface BlockGetter extends LevelHeightAccessor {
|
||||||
|
|
||||||
// CraftBukkit start - moved block handling into separate method for use by Block#rayTrace
|
// CraftBukkit start - moved block handling into separate method for use by Block#rayTrace
|
||||||
default BlockHitResult rayTraceBlock(ClipContext raytrace1, BlockPos blockposition) {
|
default BlockHitResult clip(ClipContext raytrace1, BlockPos blockposition) {
|
||||||
- BlockState iblockdata = this.getBlockState(blockposition);
|
- BlockState iblockdata = this.getBlockState(blockposition);
|
||||||
+ // Paper start - Prevent raytrace from loading chunks
|
+ // Paper start - Prevent raytrace from loading chunks
|
||||||
+ BlockState iblockdata = this.getTypeIfLoaded(blockposition);
|
+ BlockState iblockdata = this.getTypeIfLoaded(blockposition);
|
1
todo.txt
1
todo.txt
@ -3,3 +3,4 @@ Check IBlockDataList#GLOBAL_PALETTE
|
|||||||
Check if PlayerNaturallySpawnedEvent is called correctly
|
Check if PlayerNaturallySpawnedEvent is called correctly
|
||||||
Make sure fluids aren't completly fucked, there may be more sync loads to nuke there as well
|
Make sure fluids aren't completly fucked, there may be more sync loads to nuke there as well
|
||||||
Improve Server Thread Pool and Thread Priorities: mojang added a max thread count property
|
Improve Server Thread Pool and Thread Priorities: mojang added a max thread count property
|
||||||
|
Use Vanilla Minecart Speeds: is this needed?
|
||||||
|
Loading…
Reference in New Issue
Block a user