mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-05 14:01:29 +01:00
fix
This commit is contained in:
parent
2dec87fbeb
commit
77e67741cf
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user