2020-05-06 09:48:49 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2016-02-29 23:09:49 +00: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 01:48:12 +00:00
|
|
|
index 2222c1bb5f8625eee4d88946e4bfdfa2fe598977..083e421f8496b5336af473b108498ed28b984774 100644
|
2016-02-29 23:09:49 +00:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2020-11-12 01:48:12 +00:00
|
|
|
@@ -166,4 +166,9 @@ public class PaperWorldConfig {
|
2016-02-29 23:09:49 +00:00
|
|
|
private void disableExplosionKnockback(){
|
|
|
|
disableExplosionKnockback = getBoolean("disable-explosion-knockback", false);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean disableThunder;
|
|
|
|
+ private void disableThunder() {
|
|
|
|
+ disableThunder = getBoolean("disable-thunder", false);
|
|
|
|
+ }
|
|
|
|
}
|
2021-03-16 07:19:45 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/WorldServer.java b/src/main/java/net/minecraft/server/level/WorldServer.java
|
2021-06-11 06:29:15 +00:00
|
|
|
index 26d461196b4a998b445f8c6e67fd7ec0606344f6..8845b5c6dc9ebff30e8aa3abd3c905addaeb3e1d 100644
|
2021-03-16 07:19:45 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/WorldServer.java
|
2021-04-07 05:17:32 +00:00
|
|
|
@@ -586,7 +586,7 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
2019-04-25 06:53:51 +00:00
|
|
|
gameprofilerfiller.enter("thunder");
|
|
|
|
BlockPosition blockposition;
|
2016-02-29 23:09:49 +00:00
|
|
|
|
2020-11-03 02:22:15 +00: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 06:53:51 +00:00
|
|
|
blockposition = this.a(this.a(j, 0, k, 15));
|
|
|
|
if (this.isRainingAt(blockposition)) {
|
|
|
|
DifficultyDamageScaler difficultydamagescaler = this.getDamageScaler(blockposition);
|