mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
World has a isAir
method already
This commit is contained in:
parent
15d67dad00
commit
c33e0f0a46
1 changed files with 1 additions and 3 deletions
|
@ -101,9 +101,7 @@ public class Pony implements IPony {
|
||||||
Math.floor(pos.y - offsetAmount),
|
Math.floor(pos.y - offsetAmount),
|
||||||
Math.floor(pos.z));
|
Math.floor(pos.z));
|
||||||
|
|
||||||
BlockState state = entity.getEntityWorld()
|
return !entity.getEntityWorld().isAir(blockpos);
|
||||||
.getBlockState(blockpos);
|
|
||||||
return !state.isAir();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue