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

@ -24,6 +24,7 @@ Version 1.4.06-dev
= Fixed mcmmo.commands.ptp.send not being set by default
= Fixed NPE when trying to tab-complete /mctop
= Fixed Fishing treasures always having the same enchants
= Fixed Smelting returning ink sacs instead of Lapis when double-dropping
! Changed Berserk to add items to inventory rather than denying pickup
! Changed Call of the Wild, newly summoned pet's will have a custom name. (added permission node to disable this)
! Changed Chimaera Wing's recipe result to use the ingredient Material

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;
}