get the player's actual reach when checking sitting

This commit is contained in:
Oth3r 2025-06-14 17:13:19 -05:00
commit 6c02b090ac
2 changed files with 12 additions and 1 deletions

View file

@ -77,7 +77,8 @@ public class Logic {
* @return true if sitting was successful
*/
public static boolean sitLooking(ServerPlayerEntity player) {
return sit(player, Utl.getBlockPosPlayerIsLookingAt(player.getServerWorld(),player,5),null);
return sit(player, Utl.getBlockPosPlayerIsLookingAt(player.getServerWorld(),player,
Utl.getPlayerReach(player)),null);
}
/**