Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
APickledWalrus authored Feb 1, 2024
1 parent de13e90 commit adb2709
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/ch/njol/skript/Skript.java
Original file line number Diff line number Diff line change
Expand Up @@ -1159,9 +1159,13 @@ public void onPluginDisable(PluginDisableEvent event) {
// 1.19 mapping is u and 1.18 is v
String isRunningMethod = "isRunning";

if (Skript.isRunningMinecraft(1, 20)) isRunningMethod = "v";
else if (Skript.isRunningMinecraft(1, 19)) isRunningMethod = "u";
else if (Skript.isRunningMinecraft(1, 18)) isRunningMethod = "v";
if (Skript.isRunningMinecraft(1, 20)) {
isRunningMethod = "v";
} else if (Skript.isRunningMinecraft(1, 19)) {
isRunningMethod = "u";
} else if (Skript.isRunningMinecraft(1, 18)) {
isRunningMethod = "v";
}
IS_RUNNING = MC_SERVER.getClass().getMethod(isRunningMethod);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit adb2709

Please sign in to comment.