Ender IO Zoo

Ender IO Zoo

962k Downloads

Powered spawners spawn mobs centred about their North-West corner

Mysteryem opened this issue ยท 1 comments

commented

Issue Description:

Powered spawners spawn mobs centred about the North-West corner of the powered spawner.

This is because they were based on vanilla spawners, but were never updated when this behaviour was fixed for vanilla spawners: https://bugs.mojang.com/browse/MC-4855

Problematic EnderIO code:
https://github.com/SleepyTrousers/EnderIO/blob/1.10/src/main/java/crazypants/enderio/machine/spawner/TilePoweredSpawner.java#L230

Fix: Add 0.5 to the X and Z positions of entity spawns. See MobSpawnerBaseLogic::UpdateSpawner for the current vanilla 1.10.2 code.

What happens:

Powered spawners spawn mobs centred about their North-West corner.

What you expected to happen:

Powered spawners spawn mobs centred about their centre (and thus match the spawn volume that can be displayed by clicking the button in the GUI)

Steps to reproduce:

  1. Just use a powered spawner. A setup similar to https://i.imgur.com/IGUoZ7O.png helps outline the problem.
    ...

Affected Versions (Do not use "latest"):

  • EnderIO: Every single version with a Powered Spawner in it
  • EnderCore: Irrelevant
  • Minecraft: Irrelevant
  • Forge: Irrelevant

Your most recent log file where the issue was present:

Irrelevant

commented

Thanks, I wasn't aware of that