Skip to content

Commit

Permalink
Update NPCTags to latest Citizens
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 1, 2016
1 parent 476bccc commit cdd51d5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -172,7 +172,7 @@ public void navBegin(NavigationBeginEvent event) {
npc.action("begin navigation", null);

if (event.getNPC().getNavigator().getTargetType() == TargetType.ENTITY) {
LivingEntity entity = event.getNPC().getNavigator().getEntityTarget().getTarget();
LivingEntity entity = (LivingEntity) event.getNPC().getNavigator().getEntityTarget().getTarget();

// If the NPC has an entity target, is aggressive towards it
// and that entity is not dead, trigger "on attack" command
Expand Down

0 comments on commit cdd51d5

Please sign in to comment.