- Joined
- Oct 12, 2015
- Messages
- 3,781
- Thread Author
- #1
When an ad plays, it causes the EmbeddableUI to null whilst the instance is technically running, meaning the bot crashes.
Sorry if that's shitty English 8)
Using following:
Sorry if that's shitty English 8)
Using following:
Code:
setEmbeddableUI(() -> {
Future<InputStream> inputStream = getPlatform().invokeLater(() -> Resources.getAsStream("com/pBots/framework/userinterface/pInterface.fxml"));
FXMLLoader loader = new FXMLLoader();
loader.setController(uiController = new pInterfaceController(this));
return ui = loader.load(inputStream.get());
});