Fix blue slime spawn (#146)

(cherry picked from commit e05fffad60)
This commit is contained in:
paulzzh authored and Martin Robertz committed 2025-02-23 17:05:02 +01:00
1 parent 7a3855fb3c
commit 5bc7f62b5a
1 file changed
+1 -1
@@ -48,7 +48,7 @@ public class SlimeFluid extends BlockFluidClassic {
@Override
public void updateTick(World world, int x, int y, int z, Random rand) {
super.updateTick(world, x, y, z, rand);
if (rand.nextInt(100) == 0 && world.getBlockMetadata(x, y, z) == 0
if (rand.nextInt(100) == 0 && isSourceBlock(world, x, y, z)
&& world.checkNoEntityCollision(
AxisAlignedBB.getBoundingBox(x - 1, y - 1, z - 1, x + 2, y + 2, z + 2))) {
SlimeBase slime;