Skip to content

Commit

Permalink
Fix revolvers not combining their perks correctly when crafted
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSunrize committed Jun 26, 2024
1 parent 605065f commit a54f54b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
import blusunrize.immersiveengineering.common.crafting.fluidaware.TurnAndCopyRecipe;
import blusunrize.immersiveengineering.common.items.RevolverItem;
import blusunrize.immersiveengineering.common.util.ItemNBTHelper;
import blusunrize.immersiveengineering.common.util.RecipeSerializers;
import net.minecraft.core.RegistryAccess;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.Tag;
import net.minecraft.world.inventory.CraftingContainer;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.CraftingBookCategory;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.ShapedRecipe;

import javax.annotation.Nonnull;
Expand All @@ -29,6 +30,13 @@ public RevolverAssemblyRecipe(ShapedRecipe vanilla, List<Integer> copyNBT)
super(vanilla, copyNBT);
}

@Nonnull
@Override
public RecipeSerializer<?> getSerializer()
{
return RecipeSerializers.REVOLVER_ASSEMBLY_SERIALIZER.get();
}

@Nonnull
@Override
public ItemStack assemble(@Nonnull CraftingContainer matrix, RegistryAccess access)
Expand Down

0 comments on commit a54f54b

Please sign in to comment.