Commit be88e05
authored
Fix crash with unknown tooltip components (Meteor Compat) (#297)
# Fix crash with unknown tooltip components (Meteor Compat)
Fixes the crash reported in [this
thread](https://discord.com/channels/834570721070022687/1508546671624065164/1508547813511004371)
in the Lambda support Discord.
When Lambda encounters an unknown instance of TooltipData it mimics the
vanilla logic of throwing an IllegalArgumentException. This is
unnecessary and causes crashes when paired with mods like Meteor that
create their own classes which implement the TooltipData interface.
This PR fixes that by ignoring unknown implementers instead of throwing
on them, allowing the other mods' mixins to handle their implementers
properly and avoiding crashes altogether.
### Issue Link
https://discord.com/channels/834570721070022687/1508546671624065164/15085478135110043711 parent b34c92e commit be88e05
1 file changed
Lines changed: 6 additions & 6 deletions
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
0 commit comments