This commit is contained in:
Brianna O'Keefe 2019-01-23 13:35:16 -05:00
parent 2dec87fbeb
commit 77e67741cf
2 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ public abstract class Hologram {
public void add(SpawnerStack spawner) {
int amount = spawner.getAmount();
if (spawner.getLocation().getBlock().getType() != Material.SPAWNER) return;
if (spawner.getLocation().getBlock().getType() != Material.MOB_SPAWNER) return;
CreatureSpawner creatureSpawner = (CreatureSpawner) spawner.getLocation().getBlock().getState();
String name = Methods.compileSpawnerName(creatureSpawner.getSpawnedType(), amount);
@ -55,7 +55,7 @@ public abstract class Hologram {
public void update(SpawnerStack spawner) {
int amount = spawner.getAmount();
if (spawner.getLocation().getBlock().getType() != Material.SPAWNER) return;
if (spawner.getLocation().getBlock().getType() != Material.MOB_SPAWNER) return;
CreatureSpawner creatureSpawner = (CreatureSpawner) spawner.getLocation().getBlock().getState();
String name = Methods.compileSpawnerName(creatureSpawner.getSpawnedType(), amount);

View File

@ -1,13 +1,13 @@
package com.songoda.epicspawners.hologram;
package com.songoda.ultimatestacker.hologram;
import com.gmail.filoghost.holographicdisplays.api.HologramsAPI;
import com.songoda.epicspawners.EpicSpawnersPlugin;
import com.songoda.ultimatestacker.UltimateStacker;
import org.bukkit.Location;
public class HologramHolographicDisplays extends Hologram {
public HologramHolographicDisplays(EpicSpawnersPlugin instance) {
public HologramHolographicDisplays(UltimateStacker instance) {
super(instance);
}