Don't check writable in CarpetRulePrinter

Turns out that means the file has to exist, and messes with Carpet Extra's printer
This commit is contained in:
altrisi authored and GitHub committed 2023-07-25 21:17:05 +02:00
1 parent e5c395485b
commit 5374d5b5ab
1 file changed
+1 -1
@@ -35,7 +35,7 @@ public class CarpetRulePrinter implements DedicatedServerModInitializer {
// Prepare an OptionParser for our parameters
OptionParser parser = new OptionParser();
OptionSpec<Void> shouldDump = parser.accepts("carpetDumpRules");
OptionSpec<Path> pathSpec = parser.accepts("dumpPath").withRequiredArg().withValuesConvertedBy(new PathConverter(PathProperties.WRITABLE));
OptionSpec<Path> pathSpec = parser.accepts("dumpPath").withRequiredArg().withValuesConvertedBy(new PathConverter());
OptionSpec<String> filterSpec = parser.accepts("dumpFilter").withRequiredArg();
parser.allowsUnrecognizedOptions(); // minecraft may need more stuff later that we don't want to special-case
OptionSet options = parser.parse(args);