Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Linked thundering and storming.
Dieser Commit ist enthalten in:
Ursprung
f7649724fe
Commit
32a913a222
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren