File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export const withdrawItem: itemInteractionActionHandler = (details) => {
114114 }
115115
116116 let itemIdToAdd : number = details . itemId ;
117- let stackable = details . itemDetails . stackable ;
117+ let stackable : boolean = details . itemDetails . stackable ;
118118 if ( details . player . settings . bankWithdrawNoteMode ) {
119119 const toNoteId : number = toNote ( details . itemId ) ;
120120 if ( toNoteId > - 1 ) {
@@ -172,11 +172,13 @@ export const withdrawItem: itemInteractionActionHandler = (details) => {
172172 amount : removeFromContainer ( playerBank , details . itemId , countToRemove )
173173 } ;
174174
175- if ( stackable )
175+ if ( stackable ) {
176176 playerInventory . add ( { itemId : itemToAdd . itemId , amount : itemToAdd . amount } ) ;
177- else
178- for ( let count = 0 ; count < itemToAdd . amount ; count ++ )
177+ } else {
178+ for ( let count = 0 ; count < itemToAdd . amount ; count ++ ) {
179179 playerInventory . add ( { itemId : itemToAdd . itemId , amount : 1 } ) ;
180+ }
181+ }
180182
181183 updateBankingInterface ( details . player ) ;
182184} ;
You can’t perform that action at this time.
0 commit comments