Put the summary of the bug you're having here:
Sheep, pigs, cows, chicken, and their baby's keep walking through cobblestone walls.
I have 6 pigs in a 6x6 wall and they just keep walking out
Steps to Reproduce:
1. create, for example 4x4 cobblestone wall
2. put any animal in it, cows, sheep, pigs, chicken
3. watch them push their way out.
Related issues
Attachments
Comments


Unable to confirm (see screenshot); however, I'm almost definite this relates to mobs leaving wooden fence boundaries. In the picture I did a side-by-side test of a wood fence boundary and a Cobblestone wall boundary. Results were very similar: I learned that in either case, the cows didn't know that they are in an enclosed place, and insisted on trying to run into one of the sides.
While in this case I couldn't confirm, I can't say the same for chickens inside wooden fences. Often on my singleplayer world, I'll be doing something in my farm and here an egg drop, and I look up to the surprise of a chicken standing in front of me.