Fix new world generator breaking with non-default instance paths #286
This commit is contained in:
@@ -74,7 +74,8 @@ namespace Torch.Server
|
|||||||
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
|
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
string worldName = string.IsNullOrEmpty(WorldName.Text) ? _currentItem.Name : WorldName.Text;
|
string worldName = string.IsNullOrEmpty(WorldName.Text) ? _currentItem.Name : WorldName.Text;
|
||||||
var worldPath = Path.Combine("Instance", "Saves", worldName);
|
|
||||||
|
var worldPath = Path.Combine(TorchBase.Instance.Config.InstancePath, "Saves", worldName);
|
||||||
var checkpoint = _currentItem.Checkpoint;
|
var checkpoint = _currentItem.Checkpoint;
|
||||||
if (Directory.Exists(worldPath))
|
if (Directory.Exists(worldPath))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user