mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Linked thundering and storming.
This commit is contained in:
@@ -590,10 +590,11 @@ public class CraftWorld implements World {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isThundering() {
|
public boolean isThundering() {
|
||||||
return world.worldData.isThundering();
|
return hasStorm() && world.worldData.isThundering();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setThundering(boolean thundering) {
|
public void setThundering(boolean thundering) {
|
||||||
|
if (thundering && !hasStorm()) setStorm(true);
|
||||||
CraftServer server = world.getServer();
|
CraftServer server = world.getServer();
|
||||||
|
|
||||||
ThunderChangeEvent thunder = new ThunderChangeEvent((org.bukkit.World) this, thundering);
|
ThunderChangeEvent thunder = new ThunderChangeEvent((org.bukkit.World) this, thundering);
|
||||||
|
Reference in New Issue
Block a user