added sitLooking()

This commit is contained in:
Oth3r 2024-07-29 10:41:21 -05:00
commit dd6567b671
2 changed files with 24 additions and 0 deletions

View file

@ -42,6 +42,10 @@ public class Logic {
return true;
}
public static boolean sitLooking(ServerPlayerEntity player) {
return sit(player, Utl.getBlockPosPlayerIsLookingAt(player.getServerWorld(),player,5),null);
}
/**
* checks the hands of the player and the items in each hand and sees if the player can sit down
*/