3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 05:50:05 +01:00

Possibly fixed chunk loss bug encountered when teleporting. Thanks Raphfrk!

Dieser Commit ist enthalten in:
EvilSeph 2011-05-04 22:06:08 -04:00
Ursprung 1f2c44e657
Commit ef7e3689b3

Datei anzeigen

@ -96,7 +96,8 @@ public class NetworkManager {
Packet.a(packet, this.output); Packet.a(packet, this.output);
} }
if ((flag || this.w-- <= 0) && !this.m.isEmpty() && (this.d == 0 || System.currentTimeMillis() - ((Packet) this.m.get(0)).timestamp >= (long) this.d)) { // CraftBukkit - don't allow low priority packet to be sent unless it was placed in the queue before the first packet on the high priority queue
if ((flag || this.w-- <= 0) && !this.m.isEmpty() && (this.l.isEmpty() || ((Packet) this.l.get(0)).timestamp > ((Packet) this.m.get(0)).timestamp)) {
flag = false; flag = false;
object = this.e; object = this.e;
synchronized (this.e) { synchronized (this.e) {