mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-09-27 14:12:59 +02:00
fix
This commit is contained in:
parent
2dec87fbeb
commit
77e67741cf
@ -41,7 +41,7 @@ public abstract class Hologram {
|
|||||||
|
|
||||||
public void add(SpawnerStack spawner) {
|
public void add(SpawnerStack spawner) {
|
||||||
int amount = spawner.getAmount();
|
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();
|
CreatureSpawner creatureSpawner = (CreatureSpawner) spawner.getLocation().getBlock().getState();
|
||||||
String name = Methods.compileSpawnerName(creatureSpawner.getSpawnedType(), amount);
|
String name = Methods.compileSpawnerName(creatureSpawner.getSpawnedType(), amount);
|
||||||
@ -55,7 +55,7 @@ public abstract class Hologram {
|
|||||||
|
|
||||||
public void update(SpawnerStack spawner) {
|
public void update(SpawnerStack spawner) {
|
||||||
int amount = spawner.getAmount();
|
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();
|
CreatureSpawner creatureSpawner = (CreatureSpawner) spawner.getLocation().getBlock().getState();
|
||||||
String name = Methods.compileSpawnerName(creatureSpawner.getSpawnedType(), amount);
|
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.gmail.filoghost.holographicdisplays.api.HologramsAPI;
|
||||||
import com.songoda.epicspawners.EpicSpawnersPlugin;
|
import com.songoda.ultimatestacker.UltimateStacker;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
|
|
||||||
public class HologramHolographicDisplays extends Hologram {
|
public class HologramHolographicDisplays extends Hologram {
|
||||||
|
|
||||||
public HologramHolographicDisplays(EpicSpawnersPlugin instance) {
|
public HologramHolographicDisplays(UltimateStacker instance) {
|
||||||
super(instance);
|
super(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user