2023-09-21 21:54:46 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Sudzzy <originmc@outlook.com>
|
|
|
|
Date: Wed, 2 Mar 2016 14:57:24 -0600
|
|
|
|
Subject: [PATCH] Disable ice and snow
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2024-10-22 20:04:31 +02:00
|
|
|
index f1145c190b8cb50a800d9324b25aa884b7de9606..77d61f16b5b45fbe78deaf90f4ae4b126546c3e9 100644
|
2023-09-21 21:54:46 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2024-10-22 20:04:31 +02:00
|
|
|
@@ -633,11 +633,13 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe
|
2023-09-21 21:54:46 +02:00
|
|
|
|
|
|
|
gameprofilerfiller.popPush("iceandsnow");
|
|
|
|
|
2024-01-24 11:45:17 +01:00
|
|
|
+ if (!this.paperConfig().environment.disableIceAndSnow) { // Paper - Option to disable ice and snow
|
2023-09-21 21:54:46 +02:00
|
|
|
for (int l = 0; l < randomTickSpeed; ++l) {
|
|
|
|
if (this.random.nextInt(48) == 0) {
|
2023-12-05 20:39:26 +01:00
|
|
|
this.tickPrecipitation(this.getBlockRandomPos(j, 0, k, 15));
|
2023-09-21 21:54:46 +02:00
|
|
|
}
|
|
|
|
}
|
2024-01-24 11:45:17 +01:00
|
|
|
+ } // Paper - Option to disable ice and snow
|
2023-09-21 21:54:46 +02:00
|
|
|
|
|
|
|
gameprofilerfiller.popPush("tickBlocks");
|
|
|
|
timings.chunkTicksBlocks.startTiming(); // Paper
|