Skip to content

Commit

Permalink
fix storage network crash, closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIllusiveC4 committed Aug 7, 2020
1 parent 4345ef4 commit 886b2a6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,6 +28,7 @@
import java.util.ArrayList;
import java.util.List;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.CraftingInventory;
import net.minecraft.inventory.container.Container;
import net.minecraft.inventory.container.Slot;
import net.minecraft.item.ItemStack;
Expand Down Expand Up @@ -98,7 +99,7 @@ public static void craftShift(Container container, PlayerEntity player,
} catch (Exception e) {
Polymorph.LOGGER.error("Reflection error!", e);
}
NetworkCraftingInventory matrix = containerNetwork.matrix;
CraftingInventory matrix = containerNetwork.matrix;
ItemStack res = recipe.getCraftingResult(matrix);
int crafted = 0;
List<ItemStack> recipeCopy = new ArrayList<>();
Expand Down

0 comments on commit 886b2a6

Please sign in to comment.