From a762e88ae2551d8ed1e5912a34f717b03e7255fc Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Fri, 5 Jul 2024 01:00:33 +0800 Subject: [PATCH] Fix --- src/main/java/com/io/yutian/colorblindwar/game/Game.java | 2 -- .../java/com/io/yutian/colorblindwar/util/BuildSpawner.java | 2 +- src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/io/yutian/colorblindwar/game/Game.java b/src/main/java/com/io/yutian/colorblindwar/game/Game.java index b1db256..d83ac10 100644 --- a/src/main/java/com/io/yutian/colorblindwar/game/Game.java +++ b/src/main/java/com/io/yutian/colorblindwar/game/Game.java @@ -5,7 +5,6 @@ import com.io.yutian.colorblindwar.util.*; import com.sk89q.worldedit.EditSession; import com.sk89q.worldedit.WorldEdit; import com.sk89q.worldedit.bukkit.BukkitAdapter; -import com.sk89q.worldedit.function.mask.BlockTypeMask; import com.sk89q.worldedit.function.mask.InverseSingleBlockTypeMask; import com.sk89q.worldedit.function.mask.Mask; import com.sk89q.worldedit.function.operation.Operations; @@ -13,7 +12,6 @@ import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.regions.CuboidRegion; import com.sk89q.worldedit.world.block.BlockTypes; import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.format.TextColor; import org.bukkit.*; import org.bukkit.boss.BarColor; diff --git a/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java b/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java index 1f8d356..7f79cc9 100644 --- a/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java +++ b/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java @@ -231,7 +231,7 @@ public class BuildSpawner { public enum SpawnMode { MODE_1, - MODE_2; + MODE_2 } diff --git a/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java b/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java index 0643cff..fdae437 100644 --- a/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java +++ b/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java @@ -38,8 +38,7 @@ public class RandomUtil { double rx = getRandomDouble(minX, maxX, 3); double ry = getRandomDouble(minY, maxY, 3); double rz = getRandomDouble(minZ, maxZ, 3); - Location location = new Location(world, rx, ry, rz); - return location; + return new Location(world, rx, ry, rz); } }