Skip to content

Commit

Permalink
Fix invisible command with player-type NPCs, fixes #1819
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 23, 2018
1 parent ab3101e commit 419527f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ public static void setInvisible(LivingEntity ent, NPC npc) {
npc.data().setPersistent("removefromplayerlist", false);
NMS.addOrRemoveFromPlayerList(ent, false);
}
else if (ent.getType() == EntityType.ARMOR_STAND) {
if (ent.getType() == EntityType.ARMOR_STAND) {
((ArmorStand) ent).setVisible(false);
if (npc != null) {
npc.getTrait(ArmorStandTrait.class).setVisible(false);
Expand Down

0 comments on commit 419527f

Please sign in to comment.