mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 14:04:51 +08:00
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.
This commit is contained in:
parent
1bde25bb33
commit
596047aa6b
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user