diff options
author | Shane Freeder <[email protected]> | 2018-07-19 05:42:43 +0100 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2018-07-19 05:42:43 +0100 |
commit | 84c98c2ba846e3198713b9006cf7c4c4b47b5d35 (patch) | |
tree | 143cbe8a35d2bec0c0e1829fc5edcf1c75e2cdc8 /Spigot-Server-Patches/0034-Disable-thunder.patch | |
parent | 3bcba64d2822f36f4b48d5a78a1b89e3f9d1879f (diff) | |
download | Paper-84c98c2ba846e3198713b9006cf7c4c4b47b5d35.tar.gz Paper-84c98c2ba846e3198713b9006cf7c4c4b47b5d35.zip |
NOT FINISHED! She compiles, and she... suffers the wrath of chunkgen...
Diffstat (limited to 'Spigot-Server-Patches/0034-Disable-thunder.patch')
-rw-r--r-- | Spigot-Server-Patches/0034-Disable-thunder.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0034-Disable-thunder.patch b/Spigot-Server-Patches/0034-Disable-thunder.patch new file mode 100644 index 0000000000..4de1ad026e --- /dev/null +++ b/Spigot-Server-Patches/0034-Disable-thunder.patch @@ -0,0 +1,36 @@ +From cd9a4513e386b038109e500412c6c2c6d8a93849 Mon Sep 17 00:00:00 2001 +From: Sudzzy <[email protected]> +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 +index be92c1af6..efacd5ea0 100644 +--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java ++++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java +@@ -152,4 +152,9 @@ public class PaperWorldConfig { + 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 +index d7f86bf76..a4003896d 100644 +--- a/src/main/java/net/minecraft/server/WorldServer.java ++++ b/src/main/java/net/minecraft/server/WorldServer.java +@@ -491,7 +491,7 @@ public class WorldServer extends World implements IAsyncTaskHandler { + int l; + BlockPosition blockposition; + +- if (flag && flag1 && this.random.nextInt(100000) == 0) { ++ if (!this.paperConfig.disableThunder && flag && flag1 && this.random.nextInt(100000) == 0) { // Paper - Disable thunder + this.m = this.m * 3 + 1013904223; + l = this.m >> 2; + blockposition = this.a(new BlockPosition(j + (l & 15), 0, k + (l >> 8 & 15))); +-- +2.18.0 + |