Skip to content

Commit 176b0dc

Browse files
committed
clean up debug comments
1 parent 4261c0f commit 176b0dc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/com/laytonsmith/core/functions/PlayerManagement.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7324,13 +7324,13 @@ public Mixed exec(Target t, Environment env, Mixed... args)
73247324
throws ConfigRuntimeException {
73257325
final MCPlayer player;
73267326
final boolean value;
7327-
if(args.length == 1) { // no explicit player
7327+
if(args.length == 1) {
73287328
player = env.getEnv(CommandHelperEnvironment.class).GetPlayer();
7329-
Static.AssertPlayerNonNull(player, t); // may throw CREInsufficientArgumentsException
7329+
Static.AssertPlayerNonNull(player, t);
73307330
value = ArgumentValidation.getBoolean(args[0], t);
7331-
} else { // player supplied
7332-
player = Static.GetPlayer(args[0], t); // may throw CREPlayerOfflineException
7333-
value = ArgumentValidation.getBoolean(args[1], t); // may throw CRECastException
7331+
} else {
7332+
player = Static.GetPlayer(args[0], t);
7333+
value = ArgumentValidation.getBoolean(args[1], t);
73347334
}
73357335
player.setSleepingIgnored(value);
73367336
return CVoid.VOID;
@@ -7379,11 +7379,11 @@ public static class is_player_sleeping_ignored extends AbstractFunction {
73797379
public Mixed exec(Target t, Environment env, Mixed... args)
73807380
throws ConfigRuntimeException {
73817381
final MCPlayer player;
7382-
if(args.length == 0) { // no explicit player
7382+
if(args.length == 0) {
73837383
player = env.getEnv(CommandHelperEnvironment.class).GetPlayer();
7384-
Static.AssertPlayerNonNull(player, t); // may throw CREInsufficientArgumentsException
7384+
Static.AssertPlayerNonNull(player, t);
73857385
} else {
7386-
player = Static.GetPlayer(args[0], t); // may throw CREPlayerOfflineException
7386+
player = Static.GetPlayer(args[0], t);
73877387
}
73887388
return CBoolean.get(player.isSleepingIgnored());
73897389
}

0 commit comments

Comments
 (0)