Fix missing type serialization error (#557)
This commit is contained in:
parent
aa3dafa5f4
commit
dfcf5b2f1b
1 changed files with 0 additions and 2 deletions
|
|
@ -37,7 +37,6 @@ function createProtocol (version) {
|
|||
const compiler = new ProtoDefCompiler()
|
||||
compiler.addTypesToCompile(protocol.types)
|
||||
compiler.addTypes(require('../datatypes/compiler-minecraft'))
|
||||
compiler.addTypes(require('prismarine-nbt/zigzag').compiler)
|
||||
|
||||
const compiledProto = compiler.compileProtoDefSync()
|
||||
return compiledProto
|
||||
|
|
@ -47,7 +46,6 @@ function createProtocol (version) {
|
|||
function getProtocol (version) {
|
||||
const compiler = new ProtoDefCompiler()
|
||||
compiler.addTypes(require(join(__dirname, '../datatypes/compiler-minecraft')))
|
||||
compiler.addTypes(require('prismarine-nbt/zigzag').compiler)
|
||||
|
||||
global.PartialReadError = require('protodef/src/utils').PartialReadError
|
||||
const compile = (compiler, file) => require(file)(compiler.native)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue