Java 16 optimisations

This commit is contained in:
WiIIiam278 committed 2021-06-16 20:53:33 +01:00
1 parent 46dd32d5c2
commit e1113efeac
23 files changed
+116 -173

No files matched your search

@@ -48,11 +48,10 @@ public class PublicHomeCommand extends CommandBase implements TabCompleter {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (!(sender instanceof Player)) {
if (!(sender instanceof Player p)) {
handleConsolePublicHomeTeleport(sender, args);
return true;
}
Player p = (Player) sender;
if (args.length == 0) {
PublicHomeListCommand.displayPublicHomeList(p, 1);
return true;