Fixed Smelting returning ink sacs instead of Lapis when double-dropping.

Fixes #986
This commit is contained in:
GJ
2013-04-24 07:08:24 -04:00
parent e1f6366a00
commit e99599c377
2 changed files with 4 additions and 1 deletions

View File

@ -95,7 +95,9 @@ public class SmeltingManager extends SkillManager {
applyXpGain(Smelting.getResourceXp(resourceType));
if (Permissions.doubleDrops(player, skill) && SkillUtils.activationSuccessful(getSkillLevel(), getActivationChance(), Smelting.secondSmeltMaxChance, Smelting.secondSmeltMaxLevel)) {
ItemStack newResult = new ItemStack(result.getType(), result.getAmount() + 1);
ItemStack newResult = result.clone();
newResult.setAmount(result.getAmount() + 1);
return newResult;
}