Skip to content

Commit

Permalink
Consume food item when taming goats
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Dec 8, 2024
1 parent a0a482b commit 1bac755
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ public boolean processInteract(EntityPlayer player, EnumHand hand) {
}

if (!getIsTamed() && !stack.isEmpty() && MoCTools.isItemEdible(stack.getItem())) {
if (!player.capabilities.isCreativeMode) stack.shrink(1);
if (!this.world.isRemote) {
MoCTools.tameWithName(player, this);
}
Expand Down

0 comments on commit 1bac755

Please sign in to comment.