mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Fix rename command not updating the sign data file
This commit is contained in:
parent
fe97b932d7
commit
55ce71052f
@ -60,6 +60,7 @@ public class RenameCommand extends BRCommand {
|
||||
|
||||
resource.setName(args[2]);
|
||||
resource.getFolder().renameTo(new File(DungeonsXL.MAPS, args[2]));
|
||||
resource.getSignData().updateFile(resource);
|
||||
|
||||
for (Dungeon dungeon : plugin.getDungeons().getDungeons()) {
|
||||
DungeonConfig dConfig = dungeon.getConfig();
|
||||
|
@ -19,6 +19,7 @@ package io.github.dre2n.dungeonsxl.config;
|
||||
import io.github.dre2n.dungeonsxl.sign.DSign;
|
||||
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||
import io.github.dre2n.dungeonsxl.world.DResourceWorld;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
@ -58,6 +59,10 @@ public class SignData {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void updateFile(DResourceWorld resource) {
|
||||
file = new File(resource.getFolder(), "DXLData.data");
|
||||
}
|
||||
|
||||
/* Actions */
|
||||
/**
|
||||
* Applies all signs from the file to the DEditWorld.
|
||||
|
Loading…
Reference in New Issue
Block a user