World has a isAir method already

This commit is contained in:
Sollace 2019-08-12 16:56:31 +02:00
parent 15d67dad00
commit c33e0f0a46

View file

@ -101,9 +101,7 @@ public class Pony implements IPony {
Math.floor(pos.y - offsetAmount),
Math.floor(pos.z));
BlockState state = entity.getEntityWorld()
.getBlockState(blockpos);
return !state.isAir();
return !entity.getEntityWorld().isAir(blockpos);
}
@Override