You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Clear Matrix to prevent duplication and buggy behaviour.
71
-
//This must not update the inventory yet, as that would call the PrepareItemCraftEvent, invalidating the recipe and preventing consumption of the recipe!
72
-
//But clearing it later can cause other issues too!
73
-
//So lets just set the items to AIR and amount to 0...
74
-
inventory.clear();
70
+
// At this point do not change the inventory! Because that would call the PrepareItemCraftEvent, invalidating the recipe and preventing consumption of the recipe!
0 commit comments