From d42782457e9957cc5d3e7f69479736dfcca4a642 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Fri, 15 Apr 2016 15:49:39 -0500 Subject: [PATCH] Check the block water mobs spawn in, not the block under --- .../Water-mobs-should-only-spawn-in-the-water.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Water-mobs-should-only-spawn-in-the-water.patch b/Spigot-Server-Patches/Water-mobs-should-only-spawn-in-the-water.patch index 18164c9a35..c75b369576 100644 --- a/Spigot-Server-Patches/Water-mobs-should-only-spawn-in-the-water.patch +++ b/Spigot-Server-Patches/Water-mobs-should-only-spawn-in-the-water.patch @@ -18,9 +18,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + int i = MathHelper.floor(this.locX); + int j = MathHelper.floor(this.getBoundingBox().b); // minY of bounding box + int k = MathHelper.floor(this.locZ); -+ Block below = this.world.getType(new BlockPosition(i, j, k).down()).getBlock(); ++ Block block = this.world.getType(new BlockPosition(i, j, k)).getBlock(); + -+ return below == Blocks.WATER || below == Blocks.FLOWING_WATER; ++ return block == Blocks.WATER || block == Blocks.FLOWING_WATER; + // Paper end }