2015-09-13 04:29:23 +00:00
|
|
|
From 7ef2d06a703696c08a8fd08da896fedc07ebdc95 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:28:31 -0700
|
|
|
|
Subject: [PATCH] Disable ice and snow
|
|
|
|
|
|
|
|
|
|
|
|
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 2a3b944..06c7057 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
|
|
|
|
@@ -432,7 +432,7 @@ public class WorldServer extends World implements IAsyncTaskHandler {
|
|
|
|
}
|
|
|
|
|
|
|
|
this.methodProfiler.c("iceandsnow");
|
|
|
|
- if (this.random.nextInt(16) == 0) {
|
|
|
|
+ if (!this.paperSpigotConfig.disableIceAndSnow && this.random.nextInt(16) == 0) { // PaperSpigot - Disable ice and snow
|
|
|
|
this.m = this.m * 3 + 1013904223;
|
|
|
|
i1 = this.m >> 2;
|
|
|
|
blockposition = this.q(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 c5425ab..25e92f8 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
|
|
|
|
@@ -372,4 +372,10 @@ public class PaperSpigotWorldConfig
|
|
|
|
{
|
|
|
|
disableThunder = getBoolean( "disable-thunder", false );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean disableIceAndSnow;
|
|
|
|
+ private void disableIceAndSnow()
|
|
|
|
+ {
|
|
|
|
+ disableIceAndSnow = getBoolean( "disable-ice-and-snow", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2015-09-13 04:29:23 +00:00
|
|
|
2.5.2
|
2015-07-14 16:34:10 +00:00
|
|
|
|