More bugfixes

Fixed some derps on my side.
Also added a configoption to set thaumcraft sapling droprate
This commit is contained in:
Arkandos committed 2014-10-09 12:00:15 +02:00
1 parent 0c5f27e192
commit 250e5c159f
7 files changed
+24 -15

No files matched your search

@@ -76,7 +76,10 @@ public class ItemThaumiumGrafter extends Item implements IRepairableExtended, IT
int meta = world.getBlockMetadata(x, y, z) & 1;
if (meta == 0 || meta == 1)
{
this.dropItem(world, x, y, z, new ItemStack(Config.tcPlant, 1, meta));
double chance = Math.random();
if (chance <= Config.ThaumcraftSaplingDroprate) {
this.dropItem(world, x, y, z, new ItemStack(Config.tcPlant, 1, meta));
}
}
}
itemstack.damageItem(damage, entityLiving);
@@ -93,6 +93,6 @@ public class ItemThaumiumScoop extends Item implements IRepairable, IToolScoop
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister)
{
this.itemIcon = iconRegister.registerIcon(CommonProxy.DOMAIN + "thaumiumScoop");
this.itemIcon = iconRegister.registerIcon(CommonProxy.DOMAIN + ":thaumiumScoop");
}
}