While this is mostly safe, some mods will do modifications to the itemstacks, for example MegaCells, and that can cause visual issues because they are modifying the instance that is directly stored in the ingredient object. So everything that queries that, will have that modification.
It would be safer if this line of code had the copy of the items instead.
|
public LytSlot(Ingredient ingredient) { |
|
this.stacks = ingredient.getItems(); |
|
} |
While this is mostly safe, some mods will do modifications to the itemstacks, for example MegaCells, and that can cause visual issues because they are modifying the instance that is directly stored in the ingredient object. So everything that queries that, will have that modification.
It would be safer if this line of code had the copy of the items instead.
GuideME/src/main/java/guideme/document/block/LytSlot.java
Lines 33 to 35 in a255125