Open lhinuz opened 5 years ago
Not sure if this commit actually does anything, just seems to add unnecessary extra math.
Yeah, I might see if I can test this to see if there is a difference; not sure what this actually is fixing without additional context
The %
operator is a division remainder and negative numbers stay negative. With the fix they'll be positive so it'll be an actual modulo. A stack overflow answer about it
Double modulo may not be the best idea if that code should be very optimised though.
Fixed block coord bug.