Skip to content

Commit

Permalink
weird indent error
Browse files Browse the repository at this point in the history
  • Loading branch information
Asleeepp committed Jun 13, 2024
1 parent ab6d13e commit 61d942d
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/main/java/ch/njol/skript/classes/data/SkriptClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,28 +293,28 @@ public String toVariableNameString(final Time o) {
"every 10 mc days and 12 hours:",
" halt for 12.7 irl minutes, 12 hours and 120.5 seconds")
.since("1.0, 2.6.1 (weeks, months, years)")
.parser(new Parser<Timespan>() {
@Override
@Nullable
public Timespan parse(final String s, final ParseContext context) {
try {
return Timespan.parse(s, context);
} catch (IllegalArgumentException e) {
Skript.error("'" + s + "' is not a valid timespan");
return null;
.parser(new Parser<Timespan>() {
@Override
@Nullable
public Timespan parse(final String s, final ParseContext context) {
try {
return Timespan.parse(s, context);
} catch (IllegalArgumentException e) {
Skript.error("'" + s + "' is not a valid timespan");
return null;
}
}
}

@Override
public String toString(final Timespan t, final int flags) {
return t.toString(flags);
}
@Override
public String toString(final Timespan t, final int flags) {
return t.toString(flags);
}

@Override
public String toVariableNameString(final Timespan o) {
return "timespan:" + o.getMilliSeconds();
}
}).serializer(new YggdrasilSerializer<>()));
@Override
public String toVariableNameString(final Timespan o) {
return "timespan:" + o.getMilliSeconds();
}
}).serializer(new YggdrasilSerializer<>()));

// TODO remove
Classes.registerClass(new ClassInfo<>(Timeperiod.class, "timeperiod")
Expand Down

0 comments on commit 61d942d

Please sign in to comment.