Forces clients to update to the new time immediately when setTime or setFullTime is called.

This commit is contained in:
afforess 2011-04-02 04:04:57 -04:00 committed by Erik Broes
parent 39972530f2
commit adb13029bc

View file

@ -418,6 +418,12 @@ public class CraftWorld implements World {
public void setFullTime(long 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() {