diff options
author | Kyle Wood <[email protected]> | 2021-06-24 01:21:17 -0500 |
---|---|---|
committer | Kyle Wood <[email protected]> | 2021-06-24 01:21:17 -0500 |
commit | 6ab98f8e35c9c941759ff1d15e15f66293c1983a (patch) | |
tree | 4635cf11ddcc351d65044664d17924067f373fb2 /Spigot-Server-Patches-Unmapped/0185-Make-max-squid-spawn-height-configurable.patch | |
parent | 216bd81bef963ff595eff88b68e9737977c40f66 (diff) | |
download | Paper-6ab98f8e35c9c941759ff1d15e15f66293c1983a.tar.gz Paper-6ab98f8e35c9c941759ff1d15e15f66293c1983a.zip |
More changes for new paperweight
Diffstat (limited to 'Spigot-Server-Patches-Unmapped/0185-Make-max-squid-spawn-height-configurable.patch')
-rw-r--r-- | Spigot-Server-Patches-Unmapped/0185-Make-max-squid-spawn-height-configurable.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Spigot-Server-Patches-Unmapped/0185-Make-max-squid-spawn-height-configurable.patch b/Spigot-Server-Patches-Unmapped/0185-Make-max-squid-spawn-height-configurable.patch deleted file mode 100644 index d6706377d7..0000000000 --- a/Spigot-Server-Patches-Unmapped/0185-Make-max-squid-spawn-height-configurable.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Zach Brown <[email protected]> -Date: Thu, 11 Jan 2018 16:47:28 -0600 -Subject: [PATCH] Make max squid spawn height configurable - -I don't know why upstream made only the minimum height configurable but -whatever - -diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java -index 6c692e58cde22003ecbf6dc5695799147c39905a..3c39f1bb3d88baaaed4dd43c51faeef89bb5c6c2 100644 ---- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java -+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java -@@ -348,4 +348,9 @@ public class PaperWorldConfig { - expMergeMaxValue = getInt("experience-merge-max-value", -1); - log("Experience Merge Max Value: " + expMergeMaxValue); - } -+ -+ public double squidMaxSpawnHeight; -+ private void squidMaxSpawnHeight() { -+ squidMaxSpawnHeight = getDouble("squid-spawn-height.maximum", 0.0D); -+ } - } -diff --git a/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java b/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java -index 3cc9af925aaf116140d5f36cfc56aa001ffb4e35..7ce5e2597b34d3a4d2a79d73c15e893c064fc88c 100644 ---- a/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java -+++ b/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java -@@ -196,7 +196,8 @@ public class EntitySquid extends EntityWaterAnimal { - } - - public static boolean b(EntityTypes<EntitySquid> entitytypes, GeneratorAccess generatoraccess, EnumMobSpawn enummobspawn, BlockPosition blockposition, Random random) { -- return blockposition.getY() > generatoraccess.getMinecraftWorld().spigotConfig.squidSpawnRangeMin && blockposition.getY() < generatoraccess.getSeaLevel(); // Spigot -+ final double maxHeight = generatoraccess.getMinecraftWorld().paperConfig.squidMaxSpawnHeight > 0 ? generatoraccess.getMinecraftWorld().paperConfig.squidMaxSpawnHeight : generatoraccess.getSeaLevel(); // Paper -+ return blockposition.getY() > generatoraccess.getMinecraftWorld().spigotConfig.squidSpawnRangeMin && blockposition.getY() < maxHeight; // Spigot // Paper - } - - public void a(float f, float f1, float f2) { |