diff --git a/nms-patches/PathfinderGoalTempt.patch b/nms-patches/PathfinderGoalTempt.patch index e057409407..ec9ecd2649 100644 --- a/nms-patches/PathfinderGoalTempt.patch +++ b/nms-patches/PathfinderGoalTempt.patch @@ -34,7 +34,7 @@ + if (event.isCancelled()) { + return false; + } -+ this.target = ((CraftLivingEntity) event.getTarget()).getHandle(); ++ this.target = (event.getTarget() == null) ? null : ((CraftLivingEntity) event.getTarget()).getHandle(); + } + return tempt; + // CraftBukkit end