forked from SteamWar/SteamWar
Improve WindchargeStopper
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@ import net.minecraft.world.entity.projectile.windcharge.WindCharge;
|
||||
import org.bukkit.Location;
|
||||
|
||||
public class WindchargeStopper21 implements WindchargeStopper.IWindchargeStopper {
|
||||
@Override
|
||||
public void init() {
|
||||
|
||||
public WindchargeStopper21() {
|
||||
new StateDependentTask(true, FightState.Running, this::run, 1, 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,4 @@
|
||||
package de.steamwar.fightsystem.listener;
|
||||
|
||||
public class WindchargeStopper8 implements WindchargeStopper.IWindchargeStopper {
|
||||
@Override
|
||||
public void init() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+2
-4
@@ -25,13 +25,11 @@ import de.steamwar.linkage.Linked;
|
||||
|
||||
@Linked
|
||||
public class WindchargeStopper {
|
||||
private static final IWindchargeStopper impl = VersionDependent.getVersionImpl(FightSystem.getPlugin());
|
||||
|
||||
public WindchargeStopper() {
|
||||
impl.init();
|
||||
static {
|
||||
VersionDependent.getVersionImpl(FightSystem.getPlugin());
|
||||
}
|
||||
|
||||
public interface IWindchargeStopper {
|
||||
void init();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user