2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Sudzzy <originmc@outlook.com>
|
|
|
|
Date: Wed, 2 Mar 2016 14:52:43 -0600
|
|
|
|
Subject: [PATCH] Disable thunder
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2024-04-12 21:14:06 +02:00
|
|
|
index 4c0e12d9f36c78eeae4dcb2f58d41503d3a046e4..31b4d6e0473cf7cad7d4994f5a989a5d7bd9a531 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2024-01-24 13:07:40 +01:00
|
|
|
@@ -609,7 +609,7 @@ public class ServerLevel extends Level implements WorldGenLevel {
|
2023-09-21 21:54:46 +02:00
|
|
|
ProfilerFiller gameprofilerfiller = this.getProfiler();
|
2021-06-11 14:02:28 +02:00
|
|
|
|
2023-09-21 21:54:46 +02:00
|
|
|
gameprofilerfiller.push("thunder");
|
2021-10-24 19:38:23 +02:00
|
|
|
- if (flag && this.isThundering() && this.spigotConfig.thunderChance > 0 && this.random.nextInt(this.spigotConfig.thunderChance) == 0) { // Spigot
|
2024-01-24 11:45:17 +01:00
|
|
|
+ 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
|
2023-09-21 21:54:46 +02:00
|
|
|
BlockPos blockposition = this.findLightningTargetAround(this.getBlockRandomPos(j, 0, k, 15));
|
|
|
|
|
2021-06-11 14:02:28 +02:00
|
|
|
if (this.isRainingAt(blockposition)) {
|