mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-25 03:55:22 +01:00
Copy edit world before saving sign data
This commit is contained in:
parent
4391330bc7
commit
88ace289bd
@ -87,6 +87,10 @@ public class EditWorld {
|
|||||||
|
|
||||||
world.save();
|
world.save();
|
||||||
|
|
||||||
|
File dir = new File("DXL_Edit_" + id);
|
||||||
|
FileUtil.copyDirectory(dir, new File(plugin.getDataFolder(), "/maps/" + mapName));
|
||||||
|
FileUtil.deleteUnusedFiles(new File(plugin.getDataFolder(), "/maps/" + mapName));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(new File(plugin.getDataFolder(), "/maps/" + mapName + "/DXLData.data")));
|
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(new File(plugin.getDataFolder(), "/maps/" + mapName + "/DXLData.data")));
|
||||||
out.writeInt(sign.size());
|
out.writeInt(sign.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user