Squids randomly fly out of water
Occasionally, squids will start floating above water, even though they should remain inside of it. While flying squid are a real thing, this does not seem to be intended behavior within Minecraft (given that it is highly inconsistent).
What I expected to happen was...
Squids are swimming happily in the sea
What actually happened was...
Some squids are flying, out of the ocean, up into the air.
Steps to Reproduce
This issue cannot be consistently reproduced, and seems to be highly lag-dependent. The attached setup can sometimes generate squids with this behavior, but it is rare.
Screenshots
Code analysis
Based on 1.11 decompiled using MCP 9.35 rc1
The problem is that the motion handling part of the code is only done server-side. This includes setting the horizontal motion (X and Z) to 0 and reducing the vertical motion (Y) when the squid is not in water.
2012-10-27, 11:18 PM
2023-09-05, 03:54 PM
2018-01-20, 10:55 PM
5
10