2021-06-11 14:02:28 +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
|
2023-06-07 20:31:32 +02:00
|
|
|
index fdb2996562010fa6dd43b6a79b707cb86146bb48..ef48e76ca18576e631d5d2f1652d3449d558a582 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2023-06-07 20:31:32 +02:00
|
|
|
@@ -634,7 +634,7 @@ public class ServerLevel extends Level implements WorldGenLevel {
|
2022-12-07 19:32:25 +01:00
|
|
|
int l;
|
2023-06-07 20:31:32 +02:00
|
|
|
int i1;
|
2022-12-07 19:32:25 +01:00
|
|
|
|
2021-06-11 14:02:28 +02:00
|
|
|
- if (this.random.nextInt(16) == 0) {
|
2022-06-09 10:51:45 +02:00
|
|
|
+ if (!this.paperConfig().environment.disableIceAndSnow && this.random.nextInt(16) == 0) { // Paper - Disable ice and snow
|
2021-06-11 14:02:28 +02:00
|
|
|
blockposition = this.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, this.getBlockRandomPos(j, 0, k, 15));
|
|
|
|
BlockPos blockposition1 = blockposition.below();
|
2022-03-01 06:43:03 +01:00
|
|
|
Biome biomebase = (Biome) this.getBiome(blockposition).value();
|