mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Disable avatar rotation with vending machines if on a chair
This commit is contained in:
parent
2af52de0ca
commit
0a0091e563
@ -164,6 +164,11 @@ public class InteractionVendingMachine extends HabboItem {
|
||||
}
|
||||
|
||||
private void rotateToMachine(RoomUnit unit) {
|
||||
if (unit.getCurrentLocation().getState() != RoomTileState.OPEN) {
|
||||
// if sitting on a chair or laying on a bed, skip rotating altogether
|
||||
return;
|
||||
}
|
||||
|
||||
RoomUserRotation rotation = RoomUserRotation.values()[Rotation.Calculate(unit.getX(), unit.getY(), this.getX(), this.getY())];
|
||||
boolean onlyHead = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user