mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
1.21.1 changes
This commit is contained in:
parent
e64027930d
commit
53dd704f80
1 changed files with 2 additions and 2 deletions
|
@ -485,8 +485,8 @@ public class Utl {
|
|||
|
||||
public static double getPlayerReach(PlayerEntity player) {
|
||||
// use the BLOCK_INTERACTION_RANGE attribute if available
|
||||
if (player.getAttributeInstance(EntityAttributes.BLOCK_INTERACTION_RANGE) != null) {
|
||||
return player.getAttributeValue(EntityAttributes.BLOCK_INTERACTION_RANGE);
|
||||
if (player.getAttributeInstance(EntityAttributes.PLAYER_BLOCK_INTERACTION_RANGE) != null) {
|
||||
return player.getAttributeValue(EntityAttributes.PLAYER_BLOCK_INTERACTION_RANGE);
|
||||
}
|
||||
// fallback to 5
|
||||
return 5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue