Commit cf2b68d
committed
fix: Strip the 'disabledReasons' property when saving blocks to the backpack.
Disabled blocks that are saved to the backpack retain their 'disabledReasons' property, which makes them impossible to take. Add 'disabledReasons' to the list of stripped keys and apply the stripping to blocks added via the 'Backpackable' interface ('addBackpackables').1 parent 4058e0b commit cf2b68d
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
491 | 498 | | |
492 | 499 | | |
493 | 500 | | |
| |||
615 | 622 | | |
616 | 623 | | |
617 | 624 | | |
618 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
619 | 629 | | |
620 | 630 | | |
621 | 631 | | |
| |||
0 commit comments