Skip to content

Commit 6b7a92e

Browse files
authored
Update index.js
Add null port
1 parent 9f64050 commit 6b7a92e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ wss.on("connection", (socket, req) => {
5959
var heldItem = null;
6060
var bot = mineflayer.createBot({
6161
host: query.get("server"),
62-
port: query.get("port"),
62+
port:
63+
query.get("port") !== "null" ? query.get("port") : undefined,
6364
username: query.get("nick"),
6465
version: version,
6566
password:

0 commit comments

Comments
 (0)