Fix floating-point precision on Bedrock when at high coordinate (distance effect).
Fix some compatibilities issues.