forked from SteamWar/SteamWar
Fix build
This commit is contained in:
@@ -23,7 +23,6 @@ import de.steamwar.core.Core;
|
|||||||
import de.steamwar.fightsystem.ArenaMode;
|
import de.steamwar.fightsystem.ArenaMode;
|
||||||
import de.steamwar.fightsystem.Config;
|
import de.steamwar.fightsystem.Config;
|
||||||
import de.steamwar.fightsystem.record.GlobalRecorder;
|
import de.steamwar.fightsystem.record.GlobalRecorder;
|
||||||
import de.steamwar.fightsystem.utils.RandomSeed;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Sound;
|
import org.bukkit.Sound;
|
||||||
@@ -35,8 +34,6 @@ import java.util.HashSet;
|
|||||||
public class Fight {
|
public class Fight {
|
||||||
private Fight(){}
|
private Fight(){}
|
||||||
|
|
||||||
@Getter
|
|
||||||
private static final RandomSeed randomSeed = new RandomSeed();
|
|
||||||
@Getter
|
@Getter
|
||||||
private static final FightTeam redTeam = new FightTeam(Config.TeamRedName, Config.TeamRedColor, Config.TeamRedSpawn, Config.RedPasteRegion, Config.RedExtendRegion, Config.RedRotate, false, Config.RedLeader);
|
private static final FightTeam redTeam = new FightTeam(Config.TeamRedName, Config.TeamRedColor, Config.TeamRedSpawn, Config.RedPasteRegion, Config.RedExtendRegion, Config.RedRotate, false, Config.RedLeader);
|
||||||
@Getter
|
@Getter
|
||||||
|
|||||||
@@ -154,7 +154,6 @@ public class PacketProcessor implements Listener {
|
|||||||
packetDecoder[0xc6] = this::winMessage;
|
packetDecoder[0xc6] = this::winMessage;
|
||||||
packetDecoder[0xc7] = this::bossBarMessage;
|
packetDecoder[0xc7] = this::bossBarMessage;
|
||||||
packetDecoder[0xef] = source::readUTF;
|
packetDecoder[0xef] = source::readUTF;
|
||||||
packetDecoder[0xfd] = this::randomSeed;
|
|
||||||
packetDecoder[0xff] = this::tick;
|
packetDecoder[0xff] = this::tick;
|
||||||
|
|
||||||
execSync(FightWorld::forceLoad);
|
execSync(FightWorld::forceLoad);
|
||||||
@@ -648,14 +647,6 @@ public class PacketProcessor implements Listener {
|
|||||||
execSync(() -> entities.get(entityId).setOnFire(perma));
|
execSync(() -> entities.get(entityId).setOnFire(perma));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void randomSeed() throws IOException {
|
|
||||||
long seed = source.readLong();
|
|
||||||
|
|
||||||
execSync(() -> {
|
|
||||||
Fight.getRandomSeed().setSeed(seed);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private void tick(){
|
private void tick(){
|
||||||
execSync(entityServer::tick);
|
execSync(entityServer::tick);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user