mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-05 14:21:36 +01:00
Reset block-flags with setYonGround. Add setter for block-flags.
This commit is contained in:
parent
d7110b3239
commit
2b0ab5cae3
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user