LordFokas / StargateTech2

http://mod-stargatetech.com
Other
29 stars 10 forks source link

Fixed range check for large coordinates #105

Closed marcin212 closed 9 years ago

marcin212 commented 9 years ago

When I have first Stargate at (50 000, 60, 50 000) and second at ( -50 000, 60, -50 000) then integer max value is insufficient. Minecraft world limit is 30 000 000. The worst case is ((60 000 000^2)*2) + (255^2) = 7.200000000065e+15. Double max value is 1.79769e+308.