Don't convert raw salmon to raw fish when summoning ocelots.

Fixes #3366
This commit is contained in:
Glitchfinder 2018-05-15 19:40:48 -07:00
parent 5aa4949baa
commit c83d011faa

View File

@ -312,7 +312,9 @@ public class TamingManager extends SkillManager {
ParticleEffectUtils.playCallOfTheWildEffect(entity);
}
player.getInventory().setItemInMainHand(heldItemAmount == summonAmount ? null : new ItemStack(heldItem.getType(), heldItemAmount - summonAmount));
ItemStack leftovers = new ItemStack(heldItem);
leftovers.setAmount(heldItemAmount - summonAmount);
player.getInventory().setItemInMainHand(heldItemAmount == summonAmount ? null : leftovers);
String lifeSpan = "";
if (tamingCOTWLength > 0) {