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){
|
else if (dTotal < 0.0){
|
||||||
if (offset <= 0.0) {
|
if (offset <= 0.0) {
|
||||||
// Static block change (e.g. diagonal move).
|
// Static block change (e.g. diagonal move).
|
||||||
return 0.0;
|
return 0.0;
|
||||||
} else {
|
} else {
|
||||||
return offset / -dTotal;
|
return offset / -dTotal;
|
||||||
@ -136,7 +136,8 @@ public abstract class RayTracing {
|
|||||||
changed = false;
|
changed = false;
|
||||||
oX = Math.min(1.0, Math.max(0.0, oX + tMin * dX));
|
oX = Math.min(1.0, Math.max(0.0, oX + tMin * dX));
|
||||||
oY = Math.min(1.0, Math.max(0.0, oY + tMin * dY));
|
oY = Math.min(1.0, Math.max(0.0, oY + tMin * dY));
|
||||||
oZ = Math.min(1.0, Math.max(0.0, oZ + tMin * dZ));
|
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
|
// x
|
||||||
if (tX == tMin){
|
if (tX == tMin){
|
||||||
if (dX < 0){
|
if (dX < 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user