Skip to content

Commit

Permalink
Fix missing type serialization error (PrismarineJS#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
pokecosimo authored and extremeheat committed Dec 15, 2024
1 parent aa3dafa commit dfcf5b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/transforms/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit dfcf5b2

Please sign in to comment.