Fixed exploit involving Call of The Wild. Fixes #1877

This commit is contained in:
GJ
2014-02-20 11:50:56 -05:00
parent 87ac1002de
commit d0b0786284
2 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class TamingManager extends SkillManager {
}
}
player.setItemInHand(new ItemStack(heldItem.getType(), heldItemAmount - summonAmount));
player.setItemInHand(heldItemAmount == summonAmount ? null : new ItemStack(heldItem.getType(), heldItemAmount - summonAmount));
player.sendMessage(LocaleLoader.getString("Taming.Summon.Complete"));
}