Skip to content

Commit 206fecc

Browse files
committed
Fix numArgs in has_scoreboard_tag()
1 parent 5a53dd3 commit 206fecc

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4591,13 +4591,18 @@ public Version since() {
45914591
}
45924592

45934593
@api(environments = {CommandHelperEnvironment.class})
4594-
public static class has_scoreboard_tag extends EntityGetterFunction {
4594+
public static class has_scoreboard_tag extends AbstractFunction {
45954595

45964596
@Override
45974597
public String getName() {
45984598
return "has_scoreboard_tag";
45994599
}
46004600

4601+
@Override
4602+
public Integer[] numArgs() {
4603+
return new Integer[]{2};
4604+
}
4605+
46014606
@Override
46024607
public String docs() {
46034608
return "boolean {entityUUID, tag} Returns whether this entity has a specific tag.";
@@ -4609,6 +4614,21 @@ public Mixed exec(Target t, Environment environment, Mixed... args) throws Confi
46094614
return CBoolean.get(e.hasScoreboardTag(args[1].val()));
46104615
}
46114616

4617+
@Override
4618+
public Class<? extends CREThrowable>[] thrown() {
4619+
return new Class[]{CREBadEntityException.class, CRELengthException.class, CREFormatException.class};
4620+
}
4621+
4622+
@Override
4623+
public boolean isRestricted() {
4624+
return true;
4625+
}
4626+
4627+
@Override
4628+
public Boolean runAsync() {
4629+
return false;
4630+
}
4631+
46124632
@Override
46134633
public Version since() {
46144634
return MSVersion.V3_3_5;

0 commit comments

Comments
 (0)