Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Forces clients to update to the new time immediately when setTime or setFullTime is called.
Dieser Commit ist enthalten in:
Ursprung
39972530f2
Commit
adb13029bc
@ -418,6 +418,12 @@ public class CraftWorld implements World {
|
|||||||
|
|
||||||
public void setFullTime(long time) {
|
public void setFullTime(long time) {
|
||||||
world.a(time);
|
world.a(time);
|
||||||
|
|
||||||
|
//Forces the client to update to the new time immediately
|
||||||
|
for (Player p: getPlayers()) {
|
||||||
|
CraftPlayer cp = (CraftPlayer) p;
|
||||||
|
cp.getHandle().a.b(new Packet4UpdateTime(time));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Environment getEnvironment() {
|
public Environment getEnvironment() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren