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