From f8b8e8afbab618bced91627844e378d655a4e8c8 Mon Sep 17 00:00:00 2001 From: itsmeow Date: Tue, 12 Nov 2019 09:43:04 -0500 Subject: [PATCH] Make turkey eggs work in dispensers --- .../its_meow/betteranimalsplus/BetterAnimalsPlusMod.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/its_meow/betteranimalsplus/BetterAnimalsPlusMod.java b/src/main/java/its_meow/betteranimalsplus/BetterAnimalsPlusMod.java index 2223dcba..c5897362 100644 --- a/src/main/java/its_meow/betteranimalsplus/BetterAnimalsPlusMod.java +++ b/src/main/java/its_meow/betteranimalsplus/BetterAnimalsPlusMod.java @@ -8,6 +8,7 @@ import org.apache.logging.log4j.Logger; import its_meow.betteranimalsplus.common.entity.projectile.EntityPheasantEgg; +import its_meow.betteranimalsplus.common.entity.projectile.EntityTurkeyEgg; import its_meow.betteranimalsplus.common.item.ItemBlockHeadType; import its_meow.betteranimalsplus.config.BetterAnimalsPlusConfig; import its_meow.betteranimalsplus.fixers.BearDataFixer; @@ -110,6 +111,11 @@ protected IProjectile getProjectileEntity(World worldIn, IPosition position, Ite return new EntityPheasantEgg(worldIn, position.getX(), position.getY(), position.getZ()); } }); + BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.TURKEY_EGG, new BehaviorProjectileDispense() { + protected IProjectile getProjectileEntity(World worldIn, IPosition position, ItemStack stackIn) { + return new EntityTurkeyEgg(worldIn, position.getX(), position.getY(), position.getZ()); + } + }); if(Loader.isModLoaded("baubles")) { // fuk u JVM get rekt