Disable thunder
This commit is contained in:
parent
fb3f2c1b8e
commit
d75a64eff3
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@
|
||||||
|
|
||||||
gameprofilerfiller.push("thunder");
|
gameprofilerfiller.push("thunder");
|
||||||
- if (flag && this.isThundering() && this.random.nextInt(100000) == 0) {
|
- if (flag && this.isThundering() && this.random.nextInt(100000) == 0) {
|
||||||
+ if (flag && this.isThundering() && this.spigotConfig.thunderChance > 0 && this.random.nextInt(this.spigotConfig.thunderChance) == 0) { // Spigot
|
+ if (!this.paperConfig().environment.disableThunder && flag && this.isThundering() && this.spigotConfig.thunderChance > 0 && this.random.nextInt(this.spigotConfig.thunderChance) == 0) { // Spigot // Paper - Option to disable thunder
|
||||||
BlockPos blockposition = this.findLightningTargetAround(this.getBlockRandomPos(j, 0, k, 15));
|
BlockPos blockposition = this.findLightningTargetAround(this.getBlockRandomPos(j, 0, k, 15));
|
||||||
|
|
||||||
if (this.isRainingAt(blockposition)) {
|
if (this.isRainingAt(blockposition)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue