mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-04 22:01:54 +01:00
More logical order.
This commit is contained in:
parent
a05d3e06c8
commit
6e523ee46e
@ -238,9 +238,10 @@ public class MovingListener extends CheckListener{
|
||||
// TODO: Add something to guess the best set back location (possibly data.guessSetBack(Location)).
|
||||
target = loc;
|
||||
}
|
||||
if (target != null){
|
||||
// Actually this should not possibly be null, this is a block for "future" purpose, feel free to criticize it.
|
||||
target.setPitch(loc.getPitch());
|
||||
target.setYaw(loc.getYaw());
|
||||
if (target != null){
|
||||
if (sfCheck && noFall.isEnabled(player)){
|
||||
// Check if to deal damage.
|
||||
double y = loc.getY();
|
||||
|
Loading…
Reference in New Issue
Block a user