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

@@ -334,7 +334,12 @@ 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();
} }
/** /**

View File

@@ -29,9 +29,10 @@ 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