From cce79ebd52adb2fafeacaecf5185dac075ceeb04 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 17 Apr 2021 15:38:12 +0200 Subject: [PATCH] Simplify If --- .../src/de/steamwar/bausystem/features/util/SpeedCommand.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java index 7fe2a530..d8e851e0 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/SpeedCommand.java @@ -24,10 +24,8 @@ public class SpeedCommand extends SWCommand { speed = speed / 10F; if(speed < -1F) { p.sendMessage(BauSystem.PREFIX + "§c" + speed + " ist zu klein"); - return; } else if(speed > 1F) { p.sendMessage(BauSystem.PREFIX + "§c" + speed + " ist zu hoch"); - return; } else { p.setFlySpeed(speed); p.setWalkSpeed(speed);