Skip to content

Commit

Permalink
feat: compatibility with new API
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala authored Apr 12, 2019
1 parent 8090594 commit cb85f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class SceneWriter {

for (let key in entity.components) {
let c = entity.components[key]
code += `${name}.set(${this.writeComponent(c)})\n`
code += `${name}.addComponentOrReplace(${this.writeComponent(c)})\n`
}

return code
Expand Down

0 comments on commit cb85f21

Please sign in to comment.