mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-22 18:46:03 +01:00
Fixed NPE when hologram interaction is disabled
This commit is contained in:
parent
d135a7ae92
commit
36ea51b593
@ -155,7 +155,9 @@ public class Hologram {
|
||||
wrapper.setVisible(p, true);
|
||||
}
|
||||
|
||||
interactArmorStandWrapper.setVisible(p, true);
|
||||
if (interactArmorStandWrapper != null) {
|
||||
interactArmorStandWrapper.setVisible(p, true);
|
||||
}
|
||||
}
|
||||
}.runTaskAsynchronously(plugin);
|
||||
|
||||
@ -173,7 +175,9 @@ public class Hologram {
|
||||
wrapper.setVisible(p, false);
|
||||
}
|
||||
|
||||
interactArmorStandWrapper.setVisible(p, false);
|
||||
if (interactArmorStandWrapper != null) {
|
||||
interactArmorStandWrapper.setVisible(p, false);
|
||||
}
|
||||
}
|
||||
}.runTaskAsynchronously(plugin);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user