mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Java 16 pog
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user