diff --git a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Fight.java b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Fight.java index afd357e8..61f6a162 100644 --- a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Fight.java +++ b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Fight.java @@ -23,7 +23,6 @@ import de.steamwar.core.Core; import de.steamwar.fightsystem.ArenaMode; import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.record.GlobalRecorder; -import de.steamwar.fightsystem.utils.RandomSeed; import lombok.Getter; import org.bukkit.Bukkit; import org.bukkit.Sound; @@ -35,8 +34,6 @@ import java.util.HashSet; public class Fight { private Fight(){} - @Getter - private static final RandomSeed randomSeed = new RandomSeed(); @Getter private static final FightTeam redTeam = new FightTeam(Config.TeamRedName, Config.TeamRedColor, Config.TeamRedSpawn, Config.RedPasteRegion, Config.RedExtendRegion, Config.RedRotate, false, Config.RedLeader); @Getter diff --git a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java index 2cc84688..22b675b4 100644 --- a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java +++ b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java @@ -154,7 +154,6 @@ public class PacketProcessor implements Listener { packetDecoder[0xc6] = this::winMessage; packetDecoder[0xc7] = this::bossBarMessage; packetDecoder[0xef] = source::readUTF; - packetDecoder[0xfd] = this::randomSeed; packetDecoder[0xff] = this::tick; execSync(FightWorld::forceLoad); @@ -648,14 +647,6 @@ public class PacketProcessor implements Listener { execSync(() -> entities.get(entityId).setOnFire(perma)); } - private void randomSeed() throws IOException { - long seed = source.readLong(); - - execSync(() -> { - Fight.getRandomSeed().setSeed(seed); - }); - } - private void tick(){ execSync(entityServer::tick);