mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-25 03:42:24 +00:00
Fixed NPE when hologram interaction is disabled
This commit is contained in:
parent
d135a7ae92
commit
36ea51b593
@ -155,8 +155,10 @@ public class Hologram {
|
|||||||
wrapper.setVisible(p, true);
|
wrapper.setVisible(p, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (interactArmorStandWrapper != null) {
|
||||||
interactArmorStandWrapper.setVisible(p, true);
|
interactArmorStandWrapper.setVisible(p, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}.runTaskAsynchronously(plugin);
|
}.runTaskAsynchronously(plugin);
|
||||||
|
|
||||||
visible.add(p);
|
visible.add(p);
|
||||||
@ -173,8 +175,10 @@ public class Hologram {
|
|||||||
wrapper.setVisible(p, false);
|
wrapper.setVisible(p, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (interactArmorStandWrapper != null) {
|
||||||
interactArmorStandWrapper.setVisible(p, false);
|
interactArmorStandWrapper.setVisible(p, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}.runTaskAsynchronously(plugin);
|
}.runTaskAsynchronously(plugin);
|
||||||
|
|
||||||
visible.remove(p);
|
visible.remove(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user