File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/main/java/com/laytonsmith/core/functions Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5566,7 +5566,7 @@ public static class pattack_cooldown extends AbstractFunction {
55665566
55675567 @ Override
55685568 public Class <? extends CREThrowable >[] thrown () {
5569- return new Class [] { CREPlayerOfflineException .class };
5569+ return new Class [] { CREPlayerOfflineException .class , CRELengthException . class };
55705570 }
55715571
55725572 @ Override
@@ -5581,8 +5581,12 @@ public Boolean runAsync() {
55815581
55825582 @ Override
55835583 public Mixed exec (Target t , Environment env , Mixed ... args ) throws ConfigRuntimeException {
5584- MCHumanEntity he = (args .length == 0 )
5585- ? env .getEnv (CommandHelperEnvironment .class ).GetPlayer () : Static .GetPlayer (args [0 ], t );
5584+ MCHumanEntity he ;
5585+ if (args .length == 0 ) {
5586+ he = env .getEnv (CommandHelperEnvironment .class ).GetPlayer ();
5587+ } else {
5588+ he = Static .GetPlayer (args [0 ], t );
5589+ }
55865590 return new CDouble (he .getAttackCooldown (), t );
55875591 }
55885592
You can’t perform that action at this time.
0 commit comments