Skip to content

Commit ed6a7f8

Browse files
authored
Extend every window that is opened (#2768)
1 parent 6fad4f7 commit ed6a7f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/plugins/inventory.js

+2
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ function inject (bot, { hideErrors }) {
588588
if (!windowItems || window.id !== windowItems.windowId) {
589589
// don't emit windowOpen until we have the slot data
590590
bot.once(`setWindowItems:${window.id}`, () => {
591+
extendWindow(window)
591592
bot.emit('windowOpen', window)
592593
})
593594
} else {
@@ -596,6 +597,7 @@ function inject (bot, { hideErrors }) {
596597
window.updateSlot(i, item)
597598
}
598599
updateHeldItem()
600+
extendWindow(window)
599601
bot.emit('windowOpen', window)
600602
}
601603
}

0 commit comments

Comments
 (0)