2015-09-19 14:34:17 +00:00
|
|
|
From bc5228ac287ff7d3d28af35781958c3695991670 Mon Sep 17 00:00:00 2001
|
2015-07-14 16:34:10 +00:00
|
|
|
From: Sudzzy <originmc@outlook.com>
|
|
|
|
Date: Tue, 14 Jul 2015 09:26:41 -0700
|
|
|
|
Subject: [PATCH] Disable thunder
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
2015-09-13 00:57:39 +00:00
|
|
|
index a94c6dc..2a3b944 100644
|
2015-07-14 16:34:10 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
@@ -422,7 +422,7 @@ public class WorldServer extends World implements IAsyncTaskHandler {
|
|
|
|
int i1;
|
|
|
|
BlockPosition blockposition;
|
|
|
|
|
|
|
|
- if (this.random.nextInt(100000) == 0 && this.S() && this.R()) {
|
|
|
|
+ if (!this.paperSpigotConfig.disableThunder && this.random.nextInt(100000) == 0 && this.S() && this.R()) { // PaperSpigot - Disable thunder
|
|
|
|
this.m = this.m * 3 + 1013904223;
|
|
|
|
i1 = this.m >> 2;
|
|
|
|
blockposition = this.a(new BlockPosition(k + (i1 & 15), 0, l + (i1 >> 8 & 15)));
|
|
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2015-09-13 00:57:39 +00:00
|
|
|
index b5bc358..c5425ab 100644
|
2015-07-14 16:34:10 +00:00
|
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
@@ -366,4 +366,10 @@ public class PaperSpigotWorldConfig
|
|
|
|
{
|
|
|
|
disableExplosionKnockback = getBoolean( "disable-explosion-knockback", false );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean disableThunder;
|
|
|
|
+ private void disableThunder()
|
|
|
|
+ {
|
|
|
|
+ disableThunder = getBoolean( "disable-thunder", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2015-09-13 04:29:23 +00:00
|
|
|
2.5.2
|
2015-07-14 16:34:10 +00:00
|
|
|
|