fix for missing function

This commit is contained in:
MattNL
2022-08-12 06:28:18 -04:00
parent bb34a2e193
commit 0612eac4b4

View File

@@ -424,5 +424,11 @@ namespace PckStudio.Forms.Editor
{
if (saved) saveToolStripMenuItem1_Click(sender, e, playOverworldInCreative.Checked);
}
// For when the Data Directory variable is null, this sets the variable in the form
private void getDataDirectory()
{
MainForm parent = Owner.Owner as MainForm; // Gets the MainForm so we can access the Save Location
DataDirectory = Path.Combine(Path.GetDirectoryName(parent.saveLocation), "Data");
}
}
}