PrismarineJS / prismarine-entity

Represent a minecraft entity
22 stars 15 forks source link

Use getter for `.heldItem` #73

Closed szdytom closed 10 months ago

szdytom commented 12 months ago

Uses getter function for .heldItem.

related to https://github.com/PrismarineJS/mineflayer/issues/3224

rom1504 commented 10 months ago

are you sure this is always valid? for example what about the second hand ?

szdytom commented 10 months ago

The document(and the README of this repository) says .heldItem is equivalent to .equipment[0], so why not to use a getter?

rom1504 commented 10 months ago

/makerelease