Skip to content

Commit

Permalink
Update WalkToTask.java
Browse files Browse the repository at this point in the history
revert this loaded check, seems it was causing a race condition somehow...
  • Loading branch information
Thutmose committed Feb 14, 2021
1 parent 12cf239 commit 23e0a8e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/pokecube/core/ai/tasks/misc/WalkToTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ protected void updateTask(final ServerWorld worldIn, final MobEntity owner, fina
private boolean isPathValid(final MobEntity mob, final WalkTarget target, final long gametime)
{
final BlockPos blockpos = target.getTarget().getBlockPos();

if (!mob.getEntityWorld().isAreaLoaded(blockpos, 16)) return false;
if (!mob.getEntityWorld().isAreaLoaded(mob.getPosition(), 16)) return false;

final Brain<?> brain = mob.getBrain();
pathing:
if (this.currentPath == null)
Expand Down

0 comments on commit 23e0a8e

Please sign in to comment.