Commit be0553b
committed
Remove custom equals/hashCode from ReferencingInventory.PlayerStorageContents
This partially reverts 0e581fb. The problem with this is that it doesn't consider other parts of the inventory, e.g. event handlers. Additionally, equals/hashCode cannot be properly implemented for ReferencingInventory due to its usage of functional interfaces.
The impact of this change should be small. Users can get back to the previous slot-deduplicating behavior by simply using the same ReferencingInventory.PlayerStorageContents instance for all affected slots.1 parent 2e1cedc commit be0553b
1 file changed
Lines changed: 0 additions & 12 deletions
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
245 | 243 | | |
246 | 244 | | |
247 | 245 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | 246 | | |
259 | 247 | | |
260 | 248 | | |
0 commit comments