2020-05-06 11:48:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2016-03-01 00:09:49 +01:00
|
|
|
From: Sudzzy <originmc@outlook.com>
|
|
|
|
Date: Wed, 2 Mar 2016 14:52:43 -0600
|
|
|
|
Subject: [PATCH] Disable thunder
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2020-11-12 02:48:12 +01:00
|
|
|
index 2222c1bb5f8625eee4d88946e4bfdfa2fe598977..083e421f8496b5336af473b108498ed28b984774 100644
|
2016-03-01 00:09:49 +01:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2020-11-12 02:48:12 +01:00
|
|
|
@@ -166,4 +166,9 @@ public class PaperWorldConfig {
|
2016-03-01 00:09:49 +01:00
|
|
|
private void disableExplosionKnockback(){
|
|
|
|
disableExplosionKnockback = getBoolean("disable-explosion-knockback", false);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean disableThunder;
|
|
|
|
+ private void disableThunder() {
|
|
|
|
+ disableThunder = getBoolean("disable-thunder", false);
|
|
|
|
+ }
|
|
|
|
}
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/WorldServer.java b/src/main/java/net/minecraft/server/level/WorldServer.java
|
|
|
|
index 09fa1f8e4e2ccf03fafe477bb9dc32b2a72b41bb..b9d9affab30c60a355552f92b44b574dc5074a5c 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/level/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/WorldServer.java
|
|
|
|
@@ -584,7 +584,7 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
2019-04-25 08:53:51 +02:00
|
|
|
gameprofilerfiller.enter("thunder");
|
|
|
|
BlockPosition blockposition;
|
2016-03-01 00:09:49 +01:00
|
|
|
|
2020-11-03 03:22:15 +01:00
|
|
|
- if (flag && this.W() && this.random.nextInt(100000) == 0) {
|
|
|
|
+ if (!this.paperConfig.disableThunder && flag && this.W() && this.random.nextInt(100000) == 0) { // Paper - Disable thunder
|
2019-04-25 08:53:51 +02:00
|
|
|
blockposition = this.a(this.a(j, 0, k, 15));
|
|
|
|
if (this.isRainingAt(blockposition)) {
|
|
|
|
DifficultyDamageScaler difficultydamagescaler = this.getDamageScaler(blockposition);
|