We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 931a418 commit 15cfeb4Copy full SHA for 15cfeb4
lib/plugins/entities.js
@@ -176,6 +176,7 @@ function inject (bot) {
176
entityData = entitiesArray.find(entity => entity.internalId === type)
177
}
178
if (entityData) {
179
+ entity.type = entityData.type || 'object'
180
entity.displayName = entityData.displayName
181
entity.entityType = entityData.id
182
entity.name = entityData.name
@@ -196,8 +197,6 @@ function inject (bot) {
196
197
bot._client.on('spawn_entity', (packet) => {
198
const entity = fetchEntity(packet.entityId)
199
const entityData = bot.registry.entities[packet.type]
-
200
- entity.type = entityData.type || 'object'
201
setEntityData(entity, packet.type, entityData)
202
203
if (bot.supportFeature('fixedPointPosition')) {
0 commit comments