Skip to content

Commit

Permalink
feature: bedrock @jsprismarine/prismarine 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vwi committed Oct 23, 2024
1 parent e11146d commit 332f01b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"dependencies": {
"@jsprismarine/prismarine": "^0.7.0",
"@jsprismarine/bedrock-data": "^1.20.81-a",
"@sfirew/minecraft-motd-parser": "^1.1.1",
"express": "^4.18.2",
"express-handlebars": "^7.0.4",
Expand Down
8 changes: 7 additions & 1 deletion src/sleepingBedrock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ export class SleepingBedrock implements ISleepingServer {

init = async ()=> {
console.log('DEBUG SleepingBedrock.init : (): ');
await this.server.bootstrap('0.0.0.0', this.settings.bedrockPort);
try {
this.logger.info("[BedRock] Starting on", this.settings.bedrockPort);
await this.server.bootstrap('0.0.0.0', this.settings.bedrockPort);

}catch(err) {
this.logger.error(err);
}
console.log('DEBUG SleepingBedrock.init : AFTER ');

}
Expand Down

0 comments on commit 332f01b

Please sign in to comment.