Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup WorldEdit-CLI data version systems #2347

Merged
merged 7 commits into from
Apr 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix up build errors
me4502 committed Apr 2, 2024
commit 898b6009caf8649b8581810c1d2f2ad78f89aac7
Original file line number Diff line number Diff line change
@@ -45,6 +45,10 @@ public class CLICommandSender implements Actor {

private final Logger sender;

public CLICommandSender(CLIWorldEdit cliWorldEdit, Logger sender) {
this(sender);
}

public CLICommandSender(Logger sender) {
checkNotNull(sender);

Original file line number Diff line number Diff line change
@@ -35,4 +35,4 @@ public record BlockManifest(String defaultstate, Map<String, BlockProperty> prop

public record BlockProperty(List<String> values, String type) {
}
}
}
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ public void loadDataFiles() {
Path outputFolder = WorldEdit.getInstance().getWorkingDirectoryPath("cli-data");
Path checkPath = outputFolder.resolve(app.getPlatform().getDataVersion() + "_" + CLI_DATA_VERSION + ".json");

try(Closer closer = Closer.create()) {
try (Closer closer = Closer.create()) {
Files.createDirectories(outputFolder);

if (!Files.exists(checkPath)) {