mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Linked thundering and storming.
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
67af7c0ed5
commit
a163a97e1c
1 changed files with 4 additions and 3 deletions
|
@ -590,10 +590,11 @@ public class CraftWorld implements World {
|
|||
}
|
||||
|
||||
public boolean isThundering() {
|
||||
return world.worldData.isThundering();
|
||||
return hasStorm() && world.worldData.isThundering();
|
||||
}
|
||||
|
||||
public void setThundering(boolean thundering) {
|
||||
if (thundering && !hasStorm()) setStorm(true);
|
||||
CraftServer server = world.getServer();
|
||||
|
||||
ThunderChangeEvent thunder = new ThunderChangeEvent((org.bukkit.World) this, thundering);
|
||||
|
|
Loading…
Reference in a new issue