Skip to content

Commit ee71adb

Browse files
committed
Fix sponge help. (#1)
For some reason if we Text.of in Optional.of, we get a null pointer.
1 parent f37a04b commit ee71adb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

SkyChanger-Sponge/src/main/java/com/dscalzi/skychanger/sponge/internal/MainExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ public Optional<Text> getShortDescription(CommandSource source) {
420420

421421
@Override
422422
public Optional<Text> getHelp(CommandSource source) {
423-
return Optional.of(Text.of("Run /SkyChanger to view usage."));
423+
Text t = Text.of("Run /SkyChanger to view usage.");
424+
return Optional.of(t);
424425
}
425426

426427
@Override

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ subprojects {
3131

3232
def major = '2'
3333
def minor = '0'
34-
def spongeRevision = '1'
34+
def spongeRevision = '2'
3535
def bukkitRevision = '1'
3636

3737
version = "${major}.${minor}.${project.name.endsWith('Sponge') ? spongeRevision : bukkitRevision}"

0 commit comments

Comments
 (0)