Skip to content

Commit ba5e7d8

Browse files
committed
+
Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
1 parent 2f35542 commit ba5e7d8

6 files changed

Lines changed: 9 additions & 13 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ Cargo.lock
1515

1616
# AI
1717
.claude/
18+
19+
# Others
20+
.server/

.idea/dictionaries/project.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/illyriaplus.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CODEOWNERS.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/config.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ impl ConfigManager {
3232

3333
/// Returns the path to the configuration file within the plugin's data folder.
3434
fn path(context: &Context) -> PathBuf {
35-
PathBuf::from(context.get_data_folder()).join("config.json")
35+
let data_folder = context.get_data_folder().replace('\\', "/");
36+
PathBuf::from(data_folder).join("config.json")
3637
}
3738

3839
/// Reads and deserializes the configuration from `path`.
@@ -60,10 +61,6 @@ impl ConfigManager {
6061
/// # Errors
6162
/// Returns an [`io::Error`] if serialization or any file operation fails.
6263
fn save(&self, path: &Path) -> Result<(), io::Error> {
63-
if let Some(parent) = path.parent() {
64-
fs::create_dir_all(parent)?;
65-
}
66-
6764
let content = serde_json::to_string_pretty(self)
6865
.map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
6966

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl Plugin for PumpkinPlus {
3131

3232
fn metadata(&self) -> PluginMetadata {
3333
PluginMetadata {
34-
name: "Pumpkin+".into(),
34+
name: "pumpkinplus".into(),
3535
version: env!("CARGO_PKG_VERSION").into(),
3636
authors: vec!["Xodium".into()],
3737
description: "Minecraft Pumpkin plugin that enhances the base gameplay".into(),

0 commit comments

Comments
 (0)