13
0
geforkt von Mirrors/Paper

Only set player weather if a plugin requested it.

If the server changes the weather it will set the per-player weather
variable and future changes will not apply. We should only set this
variable when a plugin is requesting per-player weather and not when
the server it doing it.
Dieser Commit ist enthalten in:
Travis Watkins 2013-03-18 13:58:16 -05:00
Ursprung 1bde25bb33
Commit 596047aa6b

Datei anzeigen

@ -841,7 +841,10 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
return;
}
this.weather = type;
if (plugin) {
this.weather = type;
}
this.playerConnection.sendPacket(new Packet70Bed(type == WeatherType.DOWNFALL ? 1 : 2, 0));
}