fixed drops

This commit is contained in:
StevenRS11 2014-01-26 01:38:43 -05:00
parent b105d002c5
commit 4271d47d9d
2 changed files with 12 additions and 6 deletions

View file

@ -333,9 +333,14 @@ public abstract class BaseDimDoor extends BlockDoor implements IDimDoor, ITileEn
@Override @Override
public int idDropped(int par1, Random par2Random, int par3) public int idDropped(int par1, Random par2Random, int par3)
{ {
return (par1 & 8) != 0 ? 0 : (getDrops()); //I have no idea, but sometimes this is returned as the blockID instead of metadata.
} if(par1>100)
{
return this.getDrops();
}
return (par1 & 8) != 0 ? 0 :getDrops();
}
/** /**
* Called when the block is attempted to be harvested * Called when the block is attempted to be harvested

View file

@ -29,10 +29,11 @@ public class BlockDoorGold extends BlockDoor
this.blockIconBottom = par1IconRegister.registerIcon(mod_pocketDim.modid + ":" + this.getUnlocalizedName()+"_bottom"); this.blockIconBottom = par1IconRegister.registerIcon(mod_pocketDim.modid + ":" + this.getUnlocalizedName()+"_bottom");
} }
@Override
public int idDropped(int par1, Random par2Random, int par3) public int idDropped(int par1, Random par2Random, int par3)
{ {
return mod_pocketDim.itemGoldenDoor.itemID; return (par1 & 8) != 0 ? 0 : mod_pocketDim.itemGoldenDoor.itemID;
} }
@Override @Override
public Icon getIcon(int par1, int par2) public Icon getIcon(int par1, int par2)