2016-02-05 10:12:16 +00:00
|
|
|
From a5cddf0754b5fada17bb1fa82675b46539fe8560 Mon Sep 17 00:00:00 2001
|
2016-01-29 08:38:41 +00:00
|
|
|
From: vemacs <d@nkmem.es>
|
|
|
|
Date: Fri, 29 Jan 2016 02:28:17 -0600
|
2016-02-05 10:12:16 +00:00
|
|
|
Subject: [PATCH] All chunks are slime spawn chunks toggle
|
2016-01-29 08:38:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntitySlime.java b/src/main/java/net/minecraft/server/EntitySlime.java
|
|
|
|
index d39df07..c927832 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/EntitySlime.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntitySlime.java
|
|
|
|
@@ -234,7 +234,9 @@ public class EntitySlime extends EntityInsentient implements IMonster {
|
|
|
|
return super.bR();
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (this.random.nextInt(10) == 0 && chunk.a(987234911L).nextInt(10) == 0 && this.locY < 40.0D) {
|
|
|
|
+ // PaperSpigot - Toggle to make all chunks spawn chunks
|
|
|
|
+ boolean isSlimeChunk = world.paperSpigotConfig.allChunksAreSlimeChunks || chunk.a(987234911L).nextInt(10) == 0;
|
|
|
|
+ if (this.random.nextInt(10) == 0 && isSlimeChunk && this.locY < 40.0D) {
|
|
|
|
return super.bR();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2016-02-05 10:12:16 +00:00
|
|
|
index b6ce3bb..00057a1 100644
|
2016-01-29 08:38:41 +00:00
|
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2016-02-05 10:12:16 +00:00
|
|
|
@@ -384,4 +384,10 @@ public class PaperSpigotWorldConfig
|
2016-01-29 08:38:41 +00:00
|
|
|
{
|
2016-02-05 10:12:16 +00:00
|
|
|
useHopperCheck = getBoolean( "use-hopper-check", false );
|
2016-01-29 08:38:41 +00:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean allChunksAreSlimeChunks;
|
|
|
|
+ private void allChunksAreSlimeChunks()
|
|
|
|
+ {
|
|
|
|
+ allChunksAreSlimeChunks = getBoolean( "all-chunks-are-slime-chunks", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2016-02-05 10:12:16 +00:00
|
|
|
2.7.0.windows.2
|
2016-01-29 08:38:41 +00:00
|
|
|
|