Skip to content

Commit

Permalink
Make turkey eggs work in dispensers
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Nov 12, 2019
1 parent 2f298d9 commit f8b8e8a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f8b8e8a

Please sign in to comment.