Skip to content

Commit

Permalink
pathfinding favor
Browse files Browse the repository at this point in the history
  • Loading branch information
yurisuika committed Aug 29, 2023
1 parent 15411f3 commit e8a2911
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public abstract class BeeEntityMixin {
@Inject(method = "getPathfindingFavor", at = @At("HEAD"), cancellable = true)
private void injectGetPathfindingFavor(BlockPos pos, WorldView world, CallbackInfoReturnable<Float> cir) {
if (world.getBlockState(pos).getBlock() instanceof LeavesBlock) {
cir.setReturnValue(0.0F);
cir.setReturnValue(2.0F);
}
}

Expand Down

0 comments on commit e8a2911

Please sign in to comment.