Also check the negative direction when determining if a rainbow can spawn

This commit is contained in:
Sollace 2019-02-10 21:09:26 +02:00
parent 675cea57b8
commit 422598d633

View file

@ -94,7 +94,10 @@ public class EntityRainbow extends EntityWeatherEffect {
public static class Spawner extends EntityLiving { public static class Spawner extends EntityLiving {
public static final AxisAlignedBB SPAWN_COLLISSION_RADIUS = new AxisAlignedBB(0, 0, 0, RAINBOW_MAX_SIZE, RAINBOW_MAX_SIZE, RAINBOW_MAX_SIZE); public static final AxisAlignedBB SPAWN_COLLISSION_RADIUS = new AxisAlignedBB(
-RAINBOW_MAX_SIZE, -RAINBOW_MAX_SIZE, -RAINBOW_MAX_SIZE,
RAINBOW_MAX_SIZE, RAINBOW_MAX_SIZE, RAINBOW_MAX_SIZE
);
public Spawner(World worldIn) { public Spawner(World worldIn) {
super(worldIn); super(worldIn);