diff --git a/src/treepuncher/__main__.py b/src/treepuncher/__main__.py index 9ede050..08f08ca 100644 --- a/src/treepuncher/__main__.py +++ b/src/treepuncher/__main__.py @@ -95,7 +95,7 @@ def main(): try: client = Treepuncher( args.name, - server=args.server, + server=args.server or None, online_mode=not args.offline, legacy=args.mojang, use_packet_whitelist=args.use_packet_whitelist,