Skip to content

Commit

Permalink
Don't modify ender lilly drops
Browse files Browse the repository at this point in the history
 * Actually fixes #36
  • Loading branch information
squeek502 committed Sep 30, 2014
1 parent 1b236e7 commit 191be10
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -390,6 +390,11 @@ else if (clicked instanceof BlockCrops && meta >= 7)
@SubscribeEvent
public void onBlockHarvested(BlockEvent.HarvestDropsEvent event)
{
// certain things we don't want to modify the drops of
// TODO: allow the user to set a custom blacklist?

This comment has been minimized.

Copy link
@Parker8283

Parker8283 Oct 1, 2014

This should happen.

if (event.block == Block.getBlockFromName("ExtraUtilities:plant/ender_lilly"))
return;

boolean isNaturaCrop = Loader.isModLoaded("Natura") && event.block instanceof CropBlock;
if (isNaturaCrop || event.block instanceof BlockCrops)
{
Expand Down

0 comments on commit 191be10

Please sign in to comment.