Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Jul 2, 2024
1 parent f4c8249 commit 97c8da7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/plugins/breath.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function inject (bot) {
return
}
bot._client.on('entity_metadata', (packet) => {
if (!bot.entity) return
if (bot.entity.id !== packet.entityId) return
for (const metadata of packet.metadata) {
if (metadata.key === 1) {
Expand Down
1 change: 0 additions & 1 deletion test/externalTests/useChests.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ module.exports = () => async (bot) => {
if (Math.random() < slotPopulationFactor) {
const randomItem = getRandomStackableItem()
const item = bot.registry.itemsByName[randomItem]
console.log('createRandomLayout', randomItem, bot.registry.itemsByName)
bot.chat(`/give ${bot.username} ${item.name} ${Math.ceil(Math.random() * item.stackSize)}`)
await onceWithCleanup(window, 'updateSlot', { checkCondition: (slot, oldItem, newItem) => slot === window.hotbarStart && newItem?.name === item.name })

Expand Down

0 comments on commit 97c8da7

Please sign in to comment.