mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-27 18:01:33 +01:00
Only ignore the first block of the primary line, if ignoreFirst is set.
This commit is contained in:
parent
0b89cdd90a
commit
389df1aa86
@ -67,7 +67,7 @@ public class PassableRayTracing extends RayTracing{
|
||||
@Override
|
||||
protected boolean step(final int blockX, final int blockY, final int blockZ, final double oX, final double oY, final double oZ, final double dT, final boolean isPrimary) {
|
||||
// Just delegate.
|
||||
if (step == 1 && ignorefirst){
|
||||
if (isPrimary && step == 1 && ignorefirst){
|
||||
return true;
|
||||
}
|
||||
if (BlockProperties.isPassableRay(blockCache, blockX, blockY, blockZ, oX, oY, oZ, dX, dY, dZ, dT)){
|
||||
|
Loading…
Reference in New Issue
Block a user