mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-10-31 23:59:35 +01:00
Fixed issue with removing holograms.
This commit is contained in:
parent
29e3eeb5a7
commit
685d94d7e4
@ -20,7 +20,6 @@ import com.songoda.epicanchors.utils.Methods;
|
||||
import org.apache.commons.lang.math.NumberUtils;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
|
@ -61,6 +61,7 @@ public class Anchor {
|
||||
ItemStack item = plugin.makeAnchorItem(getTicksLeft());
|
||||
getLocation().getWorld().dropItemNaturally(getLocation(), item);
|
||||
}
|
||||
plugin.clearHologram(this);
|
||||
location.getBlock().setType(Material.AIR);
|
||||
|
||||
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_9))
|
||||
@ -70,7 +71,6 @@ public class Anchor {
|
||||
? Sound.ENTITY_GENERIC_EXPLODE : Sound.valueOf("EXPLODE"), 10, 10);
|
||||
|
||||
plugin.getAnchorManager().removeAnchor(location);
|
||||
plugin.clearHologram(this);
|
||||
}
|
||||
|
||||
public Location getLocation() {
|
||||
|
Loading…
Reference in New Issue
Block a user