dont know if it works
This commit is contained in:
@ -10,6 +10,9 @@ import rip.tilly.bedwars.game.arena.Arena;
|
||||
import rip.tilly.bedwars.game.arena.CopiedArena;
|
||||
import rip.tilly.bedwars.utils.CustomLocation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public class ArenaCommandRunnable implements Runnable {
|
||||
@ -58,7 +61,13 @@ public class ArenaCommandRunnable implements Runnable {
|
||||
CustomLocation teamBmin = new CustomLocation(bMinX, arena.getTeamBmin().getY(), bMinZ, arena.getTeamBmin().getYaw(), arena.getTeamBmin().getPitch());
|
||||
CustomLocation teamBmax = new CustomLocation(bMaxX, arena.getTeamBmax().getY(), bMaxZ, arena.getTeamBmax().getYaw(), arena.getTeamBmax().getPitch());
|
||||
|
||||
CopiedArena copiedArena = new CopiedArena(a, b, min, max, teamAmin, teamAmax, teamBmin, teamBmax);
|
||||
List<CustomLocation> generators = new ArrayList<>();
|
||||
for (CustomLocation generator : arena.getGenerators()) {
|
||||
CustomLocation newGenerator = new CustomLocation((generator.getX() + this.getOffsetX()), generator.getY(), (generator.getZ() + this.getOffsetZ()), generator.getYaw(), generator.getPitch());
|
||||
generators.add(newGenerator);
|
||||
}
|
||||
|
||||
CopiedArena copiedArena = new CopiedArena(a, b, min, max, teamAmin, teamAmax, teamBmin, teamBmax, generators);
|
||||
|
||||
arena.addCopiedArena(copiedArena);
|
||||
arena.addAvailableArena(copiedArena);
|
||||
|
Reference in New Issue
Block a user