Skip to content

Commit

Permalink
Make prismarine-entity versioned (#2372)
Browse files Browse the repository at this point in the history
* Make prismarine-entity versioned

* update deps required by this pr
  • Loading branch information
u9g authored Dec 29, 2021
1 parent c98c7f1 commit 62be1a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/entities.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { Vec3 } = require('vec3')
const Entity = require('prismarine-entity')
const conv = require('../conversions')
const NAMED_ENTITY_HEIGHT = 1.62
const NAMED_ENTITY_WIDTH = 0.6
Expand All @@ -26,6 +25,7 @@ const entityStatusEvents = {
}

function inject (bot, { version }) {
const Entity = require('prismarine-entity')(version)
const objects = require('minecraft-data')(version).objects
const mobs = require('minecraft-data')(version).mobs
const entitiesArray = require('minecraft-data')(version).entitiesArray
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prismarine-block": "^1.10.3",
"prismarine-chat": "^1.3.3",
"prismarine-chunk": "^1.26.0",
"prismarine-entity": "^1.2.0",
"prismarine-entity": "^2.0.0",
"prismarine-item": "^1.11.0",
"prismarine-nbt": "^2.0.0",
"prismarine-physics": "^1.3.1",
Expand Down

0 comments on commit 62be1a1

Please sign in to comment.