Closed FREE2WIN2 closed 4 years ago
Do you intend to run it in async mode or not? You should also consider seting awe to debug mode and see what it shows on the console.
Besides this is not schematic loading this is pasting.
sorry, I forgot the code for loading:)
Main main = Main.getPlugin();
String path = main.getCustomConfig().getString("Config.path");
File pathFile = new File(path);
path = pathFile.getParentFile().getAbsolutePath();
File dir = new File(path+"/schematics/TestBlockSklave");
File schem = new File(dir.getAbsolutePath() + "/" + filename + ".schem");
ClipboardFormat format = ClipboardFormats.findByFile(schem);
try {
Clipboard clipboard = reader.read();
return clipboard;
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null;
I intend to run everything in async mode.
And something more: pasting per plugin ist relative fast, but as player it is very slow...
Do you have any idea why?
To test this you should enable debug mode in AWE and check what do you get in the log. Is this the full code? Do you use the BlocksPlacer perform as async job?
Yes this is the full code.. And I dont use the BlockPlacer
You still did not provide the log.
No response, closing.
with this code the server laggs a little bit while loading an schematic(no matter what size)
Can you help me? I have nothing changed in the config.