Fix MobSign constructor

This commit is contained in:
Daniel Saukel 2020-03-16 18:47:51 +01:00
parent faa2b439ef
commit d60d3f3345

View File

@ -22,8 +22,8 @@ import de.erethon.commons.misc.Registry;
import de.erethon.dungeonsxl.api.DungeonsAPI; import de.erethon.dungeonsxl.api.DungeonsAPI;
import de.erethon.dungeonsxl.api.mob.ExternalMobProvider; import de.erethon.dungeonsxl.api.mob.ExternalMobProvider;
import de.erethon.dungeonsxl.api.sign.Windup; import de.erethon.dungeonsxl.api.sign.Windup;
import de.erethon.dungeonsxl.api.world.InstanceWorld;
import de.erethon.dungeonsxl.player.DPermission; import de.erethon.dungeonsxl.player.DPermission;
import de.erethon.dungeonsxl.world.DGameWorld;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import org.bukkit.Location; import org.bukkit.Location;
@ -44,8 +44,8 @@ public class MobSign extends Windup {
private Collection<LivingEntity> spawnedMobs = new ArrayList<>(); private Collection<LivingEntity> spawnedMobs = new ArrayList<>();
private int initialAmount; private int initialAmount;
public MobSign(DungeonsAPI api, Sign sign, String[] lines, DGameWorld gameWorld) { public MobSign(DungeonsAPI api, Sign sign, String[] lines, InstanceWorld instance) {
super(api, sign, lines, gameWorld); super(api, sign, lines, instance);
providers = api.getExternalMobProviderRegistry(); providers = api.getExternalMobProviderRegistry();
} }