More logical order.

This commit is contained in:
asofold 2012-12-14 10:49:37 +01:00
parent a05d3e06c8
commit 6e523ee46e

View File

@ -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;
}
target.setPitch(loc.getPitch());
target.setYaw(loc.getYaw());
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 (sfCheck && noFall.isEnabled(player)){
// Check if to deal damage.
double y = loc.getY();