Reset block-flags with setYonGround. Add setter for block-flags.

This commit is contained in:
asofold 2013-03-05 20:10:37 +01:00
parent d7110b3239
commit 2b0ab5cae3

View File

@ -584,9 +584,14 @@ public class PlayerLocation {
return yOnGround;
}
/**
* This resets onGround and blockFlags.
* @param yOnGround
*/
public void setyOnGround(final double yOnGround) {
this.yOnGround = yOnGround;
this.onGround = null;
blockFlags = null;
}
/**
@ -778,5 +783,13 @@ public class PlayerLocation {
public Long getBlockFlags() {
return blockFlags;
}
/**
* Set the block flags which are usually collected on base of bounding box, yOnGround and other considerations, such as 1.5 high blocks.
* @param blockFlags
*/
public void setBlockFlags(Long blockFlags){
this.blockFlags = blockFlags;
}
}