Java 16 pog

This commit is contained in:
jmp committed 2021-05-12 17:45:28 -07:00
1 parent 93a9194711
commit 0a71349091
2 files changed
+5 -6

No files matched your search

@@ -56,8 +56,8 @@ public class CarbonChatSponge extends CarbonChatCommon {
AsynchronousCommandExecutionCoordinator.<Commander>newBuilder().build(),
commander -> ((SpongeCommander) commander).commandCause(),
commandCause -> {
if (commandCause.subject() instanceof ServerPlayer) {
return new SpongePlayerCommander(this, (ServerPlayer) commandCause.subject(), commandCause);
if (commandCause.subject() instanceof ServerPlayer player) {
return new SpongePlayerCommander(this, player, commandCause);
}
return SpongeCommander.from(commandCause);
}