Skip to content

Commit

Permalink
Update ShadowArmorStand.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Masstrix committed Apr 11, 2021
1 parent b0ecf00 commit 2eaa707
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public ShadowArmorStand(Location loc) {

// Make sure the armor stand is silent by default
setSilent(true);
setInvisible(true);
}

/**
Expand Down Expand Up @@ -152,9 +153,9 @@ public boolean isInvisible() {
*/
public void setInvisible(boolean invisible) {
try {
this.invisible = invisible;
setInvisibleMethod.invoke(entity, invisible);
sendRefresh();
this.invisible = invisible;
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 2eaa707

Please sign in to comment.