Skip to content

Commit

Permalink
make arrow clip not stackable
Browse files Browse the repository at this point in the history
fix #1275
  • Loading branch information
Cheaterpaul committed Oct 30, 2023
1 parent d1bac83 commit e4d0e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/teamlapen/vampirism/core/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public boolean isFoil(ItemStack stack) {
public static final RegistryObject<Item> SOUL_ORB_VAMPIRE = register("soul_orb_vampire", () -> new Item(props()));

public static final RegistryObject<StakeItem> STAKE = register("stake", StakeItem::new);
public static final RegistryObject<Item> ARROW_CLIP = register("tech_crossbow_ammo_package", () -> new ArrowContainer(props(), 12, (stack) -> stack.is(CROSSBOW_ARROW_NORMAL.get())) {
public static final RegistryObject<Item> ARROW_CLIP = register("tech_crossbow_ammo_package", () -> new ArrowContainer(props().stacksTo(1), 12, (stack) -> stack.is(CROSSBOW_ARROW_NORMAL.get())) {
@Override
public void appendHoverText(@NotNull ItemStack stack, @Nullable Level level, @NotNull List<Component> texts, @NotNull TooltipFlag flag) {
texts.add(Component.translatable("item.vampirism.tech_crossbow_ammo_package.tooltip", Component.translatable(BASIC_TECH_CROSSBOW.get().getDescriptionId())).withStyle(ChatFormatting.GRAY));
Expand Down

0 comments on commit e4d0e43

Please sign in to comment.