Skip to content

Commit

Permalink
Don't convert raw salmon to raw fish when summoning ocelots.
Browse files Browse the repository at this point in the history
Fixes #3366
  • Loading branch information
Glitchfinder committed May 16, 2018
1 parent 5aa4949 commit c83d011
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -312,7 +312,9 @@ private void callOfTheWild(EntityType type, int summonAmount) {
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) {
Expand Down

0 comments on commit c83d011

Please sign in to comment.