Mrbysco / TelePastries

Pastries teleporting players.
https://www.curseforge.com/minecraft/mc-mods/telepastries
MIT License
2 stars 8 forks source link

[Bug]: Issue with Adding Custom Cakes #22

Open SaihaoDraw opened 5 hours ago

SaihaoDraw commented 5 hours ago

General Info

Forge version

forge 47.3.5

Minecraft version

1.20.1

Mod version

1.20.1.0.8.3

Java version

8

Issue Description

Hello,

I've decided to continue the conversation here on GitHub as it's the most appropriate place.

I'm encountering an issue with adding custom cakes. I modified the base cakes and tried to add a new one, but every time I restart the game, the custom cakes are removed from the config file.

I've double-checked the syntax multiple times. I'm using the same structure as for CustomCake3 and only changed the relevant numbers in the config. Despite this, I receive the following error in my logs:

Incorrect key CustomCake4 was corrected from SimpleCommentedConfig:{consumeCustomCake4=true, customCake4Name=Bumble Cake, customCake4Dimension=the_bumblezone:the_bumblezone, customCake4RefillItem=[the_bumblezone:beespire_catalyst], customCake4MinY=2, customCake4MaxY=254} to its default, null.

I'm a bit lost at this point 😅. Any help would be appreciated!

Additional Information

No response

Mrbysco commented 5 hours ago

Are you removing line-breaks? as you can't touch those

SaihaoDraw commented 4 hours ago

No, normally not.

The basic custom cakes (1, 2, 3) all work perfectly. But when I add the 4 and then launch the game. It is automatically deleted when the game is loaded.

Capture

Mrbysco commented 4 hours ago

Wait, is the refill item an array in that screenshot? I think it should just be customCake3RefillITem = "blue_skies:everdawn_catalyst" etc

SaihaoDraw commented 4 hours ago

Yes, but it's the same for custom cake 1 and 2. I just copied and pasted and changed the number to 4. The first three custom cakes also work with arrays, and everything functions properly

Capture