Baby-proof creation

This commit is contained in:
Rendo 2025-07-17 21:03:13 +05:00
commit 2e750228e1
4 changed files with 16 additions and 22 deletions

View file

@ -27,6 +27,10 @@ public partial class AdventureEditor : MarginContainer
public void Save()
{
if (editedPath.EndsWith(".tres") == false)
{
editedPath += ".tres";
}
ResourceSaver.Save(editedResource, editedPath);
}