limit the range at which we'll consider an attackable target

This patch aims to ensure that MCP World#getNearestAttackablePlayer
will not trigger chunk loads due to PathfinderGoalNearestAttackableTarget
performing a ray trace operation by pre-checking the maximum limit;

Given that the implementation shows that the limit should only ever
decrease when set, allowing us to skip further checks earlier on
when looking for an attackable entity
This commit is contained in:
Shane Freeder 2018-11-26 13:23:49 +00:00
parent 3aa59b3c99
commit b5184575e6
No known key found for this signature in database
GPG key ID: A3F61EA5A085289C
3 changed files with 39 additions and 4 deletions

View file

@ -1,4 +1,4 @@
From 57f8f2e8bfc9419a07a28ad20fb52c13ee3e5562 Mon Sep 17 00:00:00 2001
From 5639eb8d022329ed99bb9f92f8dbe416d5e4f377 Mon Sep 17 00:00:00 2001
From: Jedediah Smith <jedediah@silencegreys.com>
Date: Fri, 4 Mar 2016 03:13:18 -0500
Subject: [PATCH] Arrow pickup rule API
@ -48,5 +48,5 @@ index 99814eee..34dde443 100644
+ // Paper end
}
--
2.18.0
2.19.1