Updated Guide-API

This commit is contained in:
WayofTime 2015-05-25 15:21:59 -04:00
parent 5c01df44c1
commit c02f8a9e5f
4 changed files with 16 additions and 15 deletions

View file

@ -50,12 +50,13 @@ public class MailOrderEntityItem extends EntityItem
if(!worldObj.isRemote && this.ticksExisted > 100 && !this.isDead)
{
worldObj.addWeatherEffect(new EntityLightningBolt(worldObj, this.posX, this.posY, this.posZ));
if(AlchemicalWizardry.isPneumaticCraftLoaded)
{
this.deliverItemViaDrone(this.posX, this.posY, this.posZ);
}else
{
worldObj.addWeatherEffect(new EntityLightningBolt(worldObj, this.posX, this.posY, this.posZ));
EntityItem entity = new BookEntityItem(worldObj, this.posX, this.posY, this.posZ, GuideRegistry.getItemStackForBook(BloodMagicGuide.bloodMagicGuide));
entity.lifespan = 6000;
entity.delayBeforeCanPickup = 20;