diff --git a/src/main/java/de/teamlapen/vampirism/core/ModItems.java b/src/main/java/de/teamlapen/vampirism/core/ModItems.java index 40aa9e4d0..e8b7633fd 100755 --- a/src/main/java/de/teamlapen/vampirism/core/ModItems.java +++ b/src/main/java/de/teamlapen/vampirism/core/ModItems.java @@ -76,7 +76,7 @@ public class ModItems { public static final DeferredItem BASIC_DOUBLE_CROSSBOW = register("basic_double_crossbow", () -> new DoubleCrossbowItem(props().durability(465), 1, 20, Tiers.WOOD)); public static final DeferredItem BASIC_TECH_CROSSBOW = register("basic_tech_crossbow", () -> new TechCrossbowItem(props().durability(930), 1.6F, 40, Tiers.DIAMOND)); - public static final DeferredItem BLOOD_BOTTLE = ITEMS.register("blood_bottle", BloodBottleItem::new); + public static final DeferredItem BLOOD_BOTTLE = ITEMS.register("blood_bottle", () -> new BloodBottleItem(props().stacksTo(1))); public static final DeferredItem BLOOD_BUCKET = register("blood_bucket", CreativeModeTabs.TOOLS_AND_UTILITIES, () -> new BucketItem(ModFluids.BLOOD.get(), new Item.Properties().craftRemainder(Items.BUCKET).stacksTo(1))); public static final DeferredItem BLOOD_INFUSED_IRON_INGOT = register("blood_infused_iron_ingot", () -> new Item(props())); public static final DeferredItem BLOOD_INFUSED_ENHANCED_IRON_INGOT = register("blood_infused_enhanced_iron_ingot", () -> new Item(props())); diff --git a/src/main/java/de/teamlapen/vampirism/items/BloodBottleItem.java b/src/main/java/de/teamlapen/vampirism/items/BloodBottleItem.java index 48f4f3664..4d05b032a 100644 --- a/src/main/java/de/teamlapen/vampirism/items/BloodBottleItem.java +++ b/src/main/java/de/teamlapen/vampirism/items/BloodBottleItem.java @@ -21,7 +21,6 @@ import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.UseAnim; -import net.minecraft.world.item.enchantment.Enchantment; import net.minecraft.world.level.Level; import net.minecraft.world.level.LevelReader; import net.neoforged.neoforge.capabilities.Capabilities; @@ -55,6 +54,10 @@ public BloodBottleItem() { super(new Properties()); } + public BloodBottleItem(Item.Properties properties) { + super(properties); + } + @Override public boolean isEnchantable(@NotNull ItemStack stack) { return false;