2019-04-05 04:52:02 +00:00
|
|
|
From 65f4b512b23c376d4cea51508f5d096041028ddb 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
|
2019-04-05 04:52:02 +00:00
|
|
|
index 75d8c35be..7010102eb 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
|
2019-04-05 04:52:02 +00:00
|
|
|
@@ -163,4 +163,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);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
2019-04-05 04:52:02 +00:00
|
|
|
index 5a7087c75..716c3ddb8 100644
|
2016-02-29 23:09:49 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
2019-01-01 03:15:55 +00:00
|
|
|
@@ -474,7 +474,7 @@ public class WorldServer extends World implements IAsyncTaskHandler {
|
2016-02-29 23:09:49 +00:00
|
|
|
int l;
|
|
|
|
BlockPosition blockposition;
|
|
|
|
|
|
|
|
- if (flag && flag1 && this.random.nextInt(100000) == 0) {
|
2018-07-15 01:53:17 +00:00
|
|
|
+ if (!this.paperConfig.disableThunder && flag && flag1 && this.random.nextInt(100000) == 0) { // Paper - Disable thunder
|
|
|
|
this.m = this.m * 3 + 1013904223;
|
|
|
|
l = this.m >> 2;
|
2016-02-29 23:09:49 +00:00
|
|
|
blockposition = this.a(new BlockPosition(j + (l & 15), 0, k + (l >> 8 & 15)));
|
|
|
|
--
|
2019-04-05 04:52:02 +00:00
|
|
|
2.21.0
|
2016-02-29 23:09:49 +00:00
|
|
|
|