Skip to content

Commit

Permalink
Merge pull request #115 from nullXer0/minecraft/1.19.1
Browse files Browse the repository at this point in the history
Replace instances of FallingTree with EditSign
  • Loading branch information
Rakambda authored Jul 29, 2022
2 parents 38db26f + 2ab189c commit 9ed2247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static Configuration read() throws RuntimeException{
return ConfigLoader.loadConfig(new Configuration(), Configuration.class, path);
}
catch(IOException e){
log.error("Failed to get FallingTree configuration from {}, using default", path, e);
log.error("Failed to get EditSign configuration from {}, using default", path, e);
return new Configuration();
}
}
Expand All @@ -43,7 +43,7 @@ public void onUpdate(){
ConfigLoader.saveConfig(this, path);
}
catch(IOException e){
log.error("Failed to saved FallingTree configuration to {}", path, e);
log.error("Failed to save EditSign configuration to {}", path, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public Function<Screen, Screen> load(){
return (screen) -> {
var builder = ConfigBuilder.create()
.setParentScreen(screen)
.setTitle(MutableComponent.create(new LiteralContents("FallingTree")));
.setTitle(MutableComponent.create(new LiteralContents("EditSign")));

var configuration = getMod().getConfiguration();
builder.setSavingRunnable(configuration::onUpdate);
Expand All @@ -47,7 +47,7 @@ public void fillConfigScreen(@NotNull ConfigBuilder builder, @NotNull Configurat
.setErrorSupplier(map(getMinecraftItemIdCellError()))
.build();

var general = builder.getOrCreateCategory(translatable("text.autoconfig.fallingtree.category.default"));
var general = builder.getOrCreateCategory(translatable("text.autoconfig.editsign.category.default"));
general.addEntry(requiredItemEntry);
}

Expand Down

0 comments on commit 9ed2247

Please sign in to comment.