2016-01-29 02:38:41 -06:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: vemacs <d@nkmem.es>
|
2016-02-29 17:09:49 -06:00
|
|
|
Date: Thu, 3 Mar 2016 01:19:22 -0600
|
2016-02-05 04:12:16 -06:00
|
|
|
Subject: [PATCH] All chunks are slime spawn chunks toggle
|
2016-01-29 02:38:41 -06:00
|
|
|
|
|
|
|
|
2016-02-29 17:09:49 -06:00
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
|
|
|
|
private void disableChestCatDetection() {
|
|
|
|
disableChestCatDetection = getBoolean("game-mechanics.disable-chest-cat-detection", false);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean allChunksAreSlimeChunks;
|
|
|
|
+ private void allChunksAreSlimeChunks() {
|
|
|
|
+ allChunksAreSlimeChunks = getBoolean("all-chunks-are-slime-chunks", false);
|
|
|
|
+ }
|
|
|
|
}
|
2016-01-29 02:38:41 -06:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntitySlime.java b/src/main/java/net/minecraft/server/EntitySlime.java
|
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/EntitySlime.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntitySlime.java
|
|
|
|
@@ -0,0 +0,0 @@ public class EntitySlime extends EntityInsentient implements IMonster {
|
2016-11-16 20:23:38 -06:00
|
|
|
return super.cM();
|
2016-01-29 02:38:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
- if (this.random.nextInt(10) == 0 && chunk.a(987234911L).nextInt(10) == 0 && this.locY < 40.0D) {
|
2016-05-11 22:07:46 -04:00
|
|
|
+ boolean isSlimeChunk = world.paperConfig.allChunksAreSlimeChunks || chunk.a(987234911L).nextInt(10) == 0; // Paper
|
2016-06-08 22:57:14 -05:00
|
|
|
+ if (this.random.nextInt(10) == 0 && isSlimeChunk && this.locY < 40.0D) {
|
2016-11-16 20:23:38 -06:00
|
|
|
return super.cM();
|
2016-01-29 02:38:41 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|