Skip to content

Commit

Permalink
improve is_mob tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 13, 2019
1 parent b5317ee commit f1bce82
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2355,7 +2355,7 @@ && getBukkitEntity() instanceof Item) {
// Returns whether the entity is a mob (Not a player or NPC).
// -->
if (attribute.startsWith("is_mob")) {
if (!isPlayer() && !isNPC()) {
if (!isPlayer() && !isNPC() && getBukkitEntity() instanceof LivingEntity) {
return Element.TRUE.getAttribute(attribute.fulfill(1));
}
else {
Expand Down

0 comments on commit f1bce82

Please sign in to comment.