mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-27 21:05:35 +01:00
Fix holograms managers
This commit is contained in:
parent
828870345e
commit
dc698223b6
@ -20,7 +20,7 @@ public class NamedHologramManager {
|
|||||||
|
|
||||||
public static void removeHologram(NamedHologram hologram) {
|
public static void removeHologram(NamedHologram hologram) {
|
||||||
pluginHolograms.remove(hologram);
|
pluginHolograms.remove(hologram);
|
||||||
if (hologram.isDeleted()) {
|
if (!hologram.isDeleted()) {
|
||||||
hologram.delete();
|
hologram.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ public class PluginHologramManager {
|
|||||||
|
|
||||||
public static void removeHologram(PluginHologram hologram) {
|
public static void removeHologram(PluginHologram hologram) {
|
||||||
pluginHolograms.remove(hologram);
|
pluginHolograms.remove(hologram);
|
||||||
if (hologram.isDeleted()) {
|
if (!hologram.isDeleted()) {
|
||||||
hologram.delete();
|
hologram.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user