Fix blue slime spawn (#146)

This commit is contained in:
paulzzh authored and GitHub committed 2025-01-12 23:55:56 -06:00
1 parent 95f6cab0be
commit e05fffad60
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;