Add Minecraft Version To The Server

Add the Minecraft version this example was built with to the create server function so that this example code works even if the default Minecraft version for this module changes.
This commit is contained in:
Oscar Beaumont 2017-11-09 18:32:10 +08:00 committed by GitHub
parent f3a25af4dc
commit 8afeee014f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ var server = mc.createServer({
encryption: true,
host: '0.0.0.0',
port: 25565,
version:"1.12.1",
});
var chunk = new Chunk();