forked from virt-mirrors/Sit
added sitLooking()
This commit is contained in:
parent
3f008635f0
commit
dd6567b671
2 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue