Skip to content

Commit

Permalink
fixed crash with HoleFill
Browse files Browse the repository at this point in the history
  • Loading branch information
IUDevman committed Nov 9, 2020
1 parent 414a39e commit be24771
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ public void onUpdate(){

BlockPos placePos = holePos.stream().sorted(Comparator.comparing(blockPos -> blockPos.getDistance((int) mc.player.posX, (int) mc.player.posY, (int) mc.player.posZ))).findFirst().orElse(null);

if (placePos == null){
return;
}

for (Entity entity : mc.world.getEntitiesWithinAABBExcludingEntity(null, new AxisAlignedBB(placePos))){
if (entity instanceof EntityPlayer){
return;
Expand Down

0 comments on commit be24771

Please sign in to comment.