From 937dc737820acfb195f72728e980554fc7be9506 Mon Sep 17 00:00:00 2001 From: Trixkz Date: Tue, 23 Nov 2021 08:17:07 -0500 Subject: [PATCH] t --- .../bedwars/listeners/game/GameStartListener.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/rip/tilly/bedwars/listeners/game/GameStartListener.java b/src/main/java/rip/tilly/bedwars/listeners/game/GameStartListener.java index 39ca7a3..1aa37b0 100644 --- a/src/main/java/rip/tilly/bedwars/listeners/game/GameStartListener.java +++ b/src/main/java/rip/tilly/bedwars/listeners/game/GameStartListener.java @@ -42,10 +42,15 @@ public class GameStartListener implements Listener { CopiedArena currentArena = game.getCopiedArena(); for (CustomLocation location : currentArena.getTeamGenerators()) { - Generator teamGen = new Generator(location.toBukkitLocation(), GeneratorType.IRON, true, game); - teamGen.setActivated(true); + Generator teamGen1 = new Generator(location.toBukkitLocation(), GeneratorType.IRON, true, game); + teamGen1.setActivated(true); - game.getActivatedGenerators().add(teamGen); + game.getActivatedGenerators().add(teamGen1); + + Generator teamGen2 = new Generator(location.toBukkitLocation(), GeneratorType.GOLD, true, game); + teamGen2.setActivated(true); + + game.getActivatedGenerators().add(teamGen2); } for (CustomLocation location : currentArena.getDiamondGenerators()) {