File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
paper-server/patches/sources/net/minecraft/world/entity/animal Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ --- a/net/minecraft/world/entity/animal/AgeableWaterCreature.java
2
+ +++ b/net/minecraft/world/entity/animal/AgeableWaterCreature.java
3
+ @@ -68,6 +_,10 @@
4
+ ) {
5
+ int seaLevel = level.getSeaLevel();
6
<
5B13
code class="diff-text syntax-highlighted-line addition">+ int i = seaLevel - 13;
7
+ + // Paper start - Make water animal spawn height configurable
8
+ + seaLevel = level.getMinecraftWorld().paperConfig().entities.spawning.wateranimalSpawnHeight.maximum.or(seaLevel);
9
+ + i = level.getMinecraftWorld().paperConfig().entities.spawning.wateranimalSpawnHeight.minimum.or(i);
10
+ + // Paper end - Make water animal spawn height configurable
11
+ return pos.getY() >= i
12
+ && pos.getY() <= seaLevel
13
+ && level.getFluidState(pos.below()).is(FluidTags.WATER)
You can’t perform that action at this time.
0 commit comments