mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14: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.z));
|
||||
|
||||
BlockState state = entity.getEntityWorld()
|
||||
.getBlockState(blockpos);
|
||||
return !state.isAir();
|
||||
return !entity.getEntityWorld().isAir(blockpos);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue