Recipes are now added to the recipe book when a tree tap is used.

This commit is contained in:
modmuss50 2017-06-15 11:35:08 +01:00
parent 5536a6cd94
commit aa615f86bd
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
23 changed files with 124 additions and 36 deletions

View file

@ -33,6 +33,7 @@ import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
@ -45,6 +46,7 @@ import prospector.shootingstar.ShootingStar;
import prospector.shootingstar.model.ModelCompound;
import reborncore.common.powerSystem.PoweredItem;
import techreborn.client.TechRebornCreativeTabMisc;
import techreborn.events.TRRecipeHandler;
import techreborn.init.ModSounds;
import techreborn.items.ItemParts;
import techreborn.items.tools.ItemElectricTreetap;
@ -182,6 +184,9 @@ public class BlockRubberLog extends Block {
item.motionZ = rand.nextGaussian() * factor;
worldIn.spawnEntity(item);
}
if(playerIn instanceof EntityPlayerMP){
TRRecipeHandler.unlockTRRecipes((EntityPlayerMP) playerIn);
}
}
return true;
}