Commit 33f4d37
committed
Fix container close packets using id 0
The InventoryCloseEvent is fired in ServerPlayer#closeContainer before the container close packet is sent. However, InvUI's CustomContainerMenu#handleClosed unsets the active container menu while handling the event. This results in a close packet with id 0 being sent.1 parent 002181d commit 33f4d37
1 file changed
Lines changed: 1 addition & 2 deletions
File tree
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
402 | 400 | | |
403 | 401 | | |
404 | 402 | | |
| 403 | + | |
405 | 404 | | |
406 | 405 | | |
407 | 406 | | |
| |||
0 commit comments