mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Forces clients to update to the new time immediately when setTime or setFullTime is called.
This commit is contained in:
parent
39972530f2
commit
adb13029bc
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue