forked from virt-mirrors/Sit
check for other players when sitting
This commit is contained in:
parent
09f5e31544
commit
f361a84d03
2 changed files with 13 additions and 1 deletions
|
@ -134,7 +134,9 @@ public class Logic {
|
|||
if (pos.getY() > entity.getY() - .80) pos2 = pos2.add(0,-1,0);
|
||||
|
||||
// check if both poses are obstructed or not
|
||||
return Utl.isNotObstructed(entity.getWorld(),pos1) && Utl.isNotObstructed(entity.getWorld(),pos2);
|
||||
return Utl.isNotObstructed(entity.getWorld(),pos1) && Utl.isNotObstructed(entity.getWorld(),pos2)
|
||||
// also check if occupied
|
||||
&& Utl.isNotOccupied(pos1) && Utl.isNotOccupied(pos2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue