mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01: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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue