Improve WindchargeStopper

This commit is contained in:
2026-04-23 12:09:17 +02:00
parent bc0dc1925e
commit 4a646e6be0
3 changed files with 4 additions and 10 deletions
@@ -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() {
}
}
@@ -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();
}
}