mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Commant + indentation.
This commit is contained in:
parent
1b55d91736
commit
7c1b2eaed3
@ -85,7 +85,7 @@ public abstract class RayTracing {
|
||||
}
|
||||
else if (dTotal < 0.0){
|
||||
if (offset <= 0.0) {
|
||||
// Static block change (e.g. diagonal move).
|
||||
// Static block change (e.g. diagonal move).
|
||||
return 0.0;
|
||||
} else {
|
||||
return offset / -dTotal;
|
||||
@ -137,6 +137,7 @@ public abstract class RayTracing {
|
||||
oX = Math.min(1.0, Math.max(0.0, oX + tMin * dX));
|
||||
oY = Math.min(1.0, Math.max(0.0, oY + tMin * dY));
|
||||
oZ = Math.min(1.0, Math.max(0.0, oZ + tMin * dZ));
|
||||
// TODO: Consider Heuristic change of the checking order for dy > 0 vs. dy < 0.
|
||||
// x
|
||||
if (tX == tMin){
|
||||
if (dX < 0){
|
||||
|
Loading…
Reference in New Issue
Block a user