This commit is contained in:
parent
b3a208c124
commit
f54dcbcfdf
|
@ -39,7 +39,7 @@ public class MapGui {
|
||||||
byte[] fileContent = Files.readAllBytes(guiFile.toPath());
|
byte[] fileContent = Files.readAllBytes(guiFile.toPath());
|
||||||
InputStream inputStream = new ByteArrayInputStream(fileContent);
|
InputStream inputStream = new ByteArrayInputStream(fileContent);
|
||||||
loadedGui = ChestGui.load(this, inputStream);
|
loadedGui = ChestGui.load(this, inputStream);
|
||||||
mapPane = new OutlinePane(1, 1, 7, 1); // Define your pane layout
|
mapPane = new OutlinePane(1, 1, 7, 3); // Define your pane layout
|
||||||
loadedGui.addPane(mapPane);
|
loadedGui.addPane(mapPane);
|
||||||
addMaps();
|
addMaps();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -211,7 +211,7 @@ public class LevelManager {
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
// load levels when level tries to be editted
|
||||||
// Load levels from levelPath
|
// Load levels from levelPath
|
||||||
loadWorldDir(levelPath, LevelType.LEVEL);
|
loadWorldDir(levelPath, LevelType.LEVEL);
|
||||||
loadWorldDir(mapPath, LevelType.MAP);
|
loadWorldDir(mapPath, LevelType.MAP);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user