[SPIGOT-5849] Constantly Raining in World 1.16 Created: 26/Jun/20 Updated: 28/Jun/20 Resolved: 28/Jun/20 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | iShopify | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | spigot | ||
| Environment: |
Normal world |
||
| Attachments: |
|
| Version: | git-Spigot-16d7899-4ff609e (MC:1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT |
| Guidelines Read: | Yes |
| Description |
|
The world's weather is set to constantly raining and I cannot stop the rain. Attached the level.dat file. Tried removing plugins one-by-one and cannot isolate which is causing it. /minecraft:weather clear doesn't work /weather clear doesn't work Worldguard weather-lock clear doesn't work |
| Comments |
| Comment by Cris [ 28/Jun/20 ] |
|
Please fix it or is there a possibility to override it manually via plugin? |
| Comment by Parker Hawke [ 28/Jun/20 ] |
It looks like the reason codes being sent in the game state change packet when starting or stopping rain are inverted in EntityPlayer. I believe you are correct |
| Comment by Carter [ 28/Jun/20 ] |
|
It looks like the reason codes being sent in the game state change packet when starting or stopping rain are inverted in EntityPlayer. |
| Comment by SirYwell [ 28/Jun/20 ] |
|
The problem is caused by calling Player#resetPlayerWeather() I can reproduce it that way easily on a fresh server (git-Spigot-ad703da-d77f4d9 (MC: 1.16.1)) with freshly generated worlds and only one plugin installed: public class TestPlugin extends JavaPlugin { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = (Player) sender; player.resetPlayerWeather(); player.sendMessage("Weather reset."); return true; } } Calling a command registered to that executor will make it start raining. Re-joining seems to resolve it. |
| Comment by md_5 [ 26/Jun/20 ] |
|
I dropped that level.dat in my world and its not raining |