remove pattern matching

This commit is contained in:
MrGazdag 2021-07-20 04:15:43 +02:00 committed by GitHub
parent ecdd0181e0
commit ed97de417e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,8 @@ public class GamemodeCommand extends Command {
if (sender.isPlayer()) sender.sendMessage(Component.translatable("argument.entity.notfound.player", NamedTextColor.RED), MessageType.SYSTEM);
else sender.sendMessage(Component.text("No player was found", NamedTextColor.RED), MessageType.SYSTEM);
} else for (Entity entity : entities) {
if (entity instanceof Player p) {
if (entity instanceof Player) {
Player p = (Player) entity;
if (p == sender) {
executeSelf(sender.asPlayer(), mode);
} else {