Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 14:00:11 +01:00
Fixed weather changes affecting players in all worlds, instead of their respective worlds.
Dieser Commit ist enthalten in:
Ursprung
569b1d2746
Commit
053e05dd37
@ -184,11 +184,17 @@ public class WorldServer extends World implements BlockChangeDelegate {
|
|||||||
|
|
||||||
super.i();
|
super.i();
|
||||||
if (flag != this.v()) {
|
if (flag != this.v()) {
|
||||||
if (flag) {
|
// CraftBukkit start - only sending weather packets to those affected
|
||||||
this.server.serverConfigurationManager.sendAll(new Packet70Bed(2));
|
for (int i = 0; i < this.players.size(); ++i) {
|
||||||
} else {
|
if (((EntityPlayer) this.players.get(i)).world == (World) this) {
|
||||||
this.server.serverConfigurationManager.sendAll(new Packet70Bed(1));
|
if (flag) {
|
||||||
|
((EntityPlayer) this.players.get(i)).netServerHandler.sendPacket(new Packet70Bed(2));
|
||||||
|
} else {
|
||||||
|
((EntityPlayer) this.players.get(i)).netServerHandler.sendPacket(new Packet70Bed(1));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren