hytopia 0.10.44 → 0.10.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/scripts.js CHANGED
@@ -516,7 +516,7 @@ function checkHostsConfiguration(verbose = false) {
516
516
  `127.0.0.1 ${DOMAIN}`,
517
517
  `::1 ${DOMAIN}`,
518
518
  managedEnd,
519
- ''
519
+ '', '' // double empty line to give spacing in hosts for nicer formatting
520
520
  ].join(EOL);
521
521
 
522
522
  const newContent = block + content;
@@ -524,6 +524,7 @@ function checkHostsConfiguration(verbose = false) {
524
524
  try {
525
525
  fs.writeFileSync(hostsPath, newContent, { encoding: 'utf8' });
526
526
  console.log(`✅ Hosts updated: ${DOMAIN} -> 127.0.0.1, ::1`);
527
+ console.log(`🎉 You can now run your server with 'hytopia start' - While running, you can test & play it at: https://hytopia.com/play`);
527
528
  } catch {
528
529
  console.error(`🚨 Could not modify hosts file (${hostsPath}) to add the dev-local.hytopia.com. You MUST run 'sudo hytopia update-hosts' to fix connections to your local server.`);
529
530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.10.44",
3
+ "version": "0.10.46",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",