Carpet

Carpet

2M Downloads

Wall blocks not preventing slimes/magma cubes from spawning when lagFreeSpawning is enabled

righteous-coder opened this issue ยท 2 comments

commented

Expected Behavior

When the game tries to spawn a slime or a magma cube on a block which has a wall block next to it, it fails because the wall block's collision box is sticking out. And the lagFreeSpawning option should not change this behavior.

Current Behavior

The lagFreeSpawning option makes slimes and magma cubes able to spawn on such blocks.

Steps to Reproduce

  1. Create a flat world with non-spawnable blocks on the surface.
  2. Enable the lagFreeSpawning option.
  3. In a slime chunk place fully opaque blocks and wall blocks like in the screenshot below.
  4. Slimes spawn.

image

Environment

  • Carpet mod: 1.3.14
  • Minecraft: 1.15.2
  • Fabric API: 0.4.24+build.279-1.15
  • Fabric loader: 0.7.8+build.184
commented

yeah, that's obvious. I will evaluate if extra checks for blocks with extended collisions is worth the optimization - if yes - will adjust lagFreeSpawning, and if not - will remove it.

commented

at least the collision part