mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-03 05:43:52 -07:00
Backport a bug fix from the pre-release
A mistake in the buffer size calculation caused the buffer for chunk packets to be around 16 times the size they should have been. By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
@@ -23,3 +23,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -117,6 +131,6 @@
|
||||||
|
public int a() {
|
||||||
|
int i = this.b.b();
|
||||||
|
|
||||||
|
- return 1 + this.c.a() + PacketDataSerializer.a(i) + i * 8;
|
||||||
|
+ return 1 + this.c.a() + PacketDataSerializer.a(i) + this.b.a().length * 8; // CraftBukkit - Backport fix, remove on update
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user