mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-27 15:33:15 +00:00
More bugfixes
Fixed some derps on my side. Also added a configoption to set thaumcraft sapling droprate
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user