Skip to content

Commit

Permalink
Restyle 1.7-final ItemFocusDislocation error handling (#1053)
Browse files Browse the repository at this point in the history
* Prevents crashing and block deletion when using Wand Focus: Dislocation on some poorly-coded blocks

Previously, when Wand Focus: Dislocation was used to pick up certain blocks (mostly blocks whose breakBlock functions assume the block's tile entity exists and is valid), the game would crash and the block would be destroyed. Now, instead of crashing, the game logs the relevant information and otherwise "fails silently". This may have some purely-visual side-effects, but the crash has been fixed.

* Restyled by clang-format

Co-authored-by: SarahKirksey <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored Jan 12, 2022
1 parent d217eff commit dc9abc9
Showing 1 changed file with 264 additions and 191 deletions.
Loading

0 comments on commit dc9abc9

Please sign in to comment.