Skip to content

Commit

Permalink
Fix #1773 Correct the repair material for Elytra (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
oitsjustjose authored and mezz committed Nov 7, 2019
1 parent f01b874 commit a8813ad
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -130,10 +130,10 @@ private static void getRepairRecipes(List<Object> recipes, IVanillaRecipeFactory
new ItemStack(Items.LEATHER_HELMET),
new ItemStack(Items.LEATHER_CHESTPLATE),
new ItemStack(Items.LEATHER_LEGGINGS),
new ItemStack(Items.LEATHER_BOOTS),
new ItemStack(Items.ELYTRA)
new ItemStack(Items.LEATHER_BOOTS)
));


ItemStack repairIron = new ItemStack(Items.IRON_INGOT);
items.put(Collections.singletonList(repairIron), Lists.newArrayList(
new ItemStack(Items.IRON_SWORD),
Expand Down Expand Up @@ -177,6 +177,11 @@ private static void getRepairRecipes(List<Object> recipes, IVanillaRecipeFactory
new ItemStack(Items.DIAMOND_BOOTS)
));

ItemStack repairElytra = new ItemStack(Items.PHANTOM_MEMBRANE);
items.put(Collections.singletonList(repairElytra), Lists.newArrayList(
new ItemStack(Items.ELYTRA)
));

for (Map.Entry<List<ItemStack>, List<ItemStack>> entry : items.entrySet()) {

List<ItemStack> repairMaterials = entry.getKey();
Expand Down

0 comments on commit a8813ad

Please sign in to comment.