mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +01:00
Fixed stand command working on beds.
This commit is contained in:
parent
b11923452f
commit
490a1f4bde
@ -3995,8 +3995,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
|
||||
public void makeStand(Habbo habbo) {
|
||||
if (habbo.getRoomUnit() == null) return;
|
||||
|
||||
HabboItem item = this.getTopItemAt(habbo.getRoomUnit().getX(), habbo.getRoomUnit().getY());
|
||||
if (item == null || !item.getBaseItem().allowSit()) {
|
||||
if (item == null || !item.getBaseItem().allowSit() || !item.getBaseItem().allowLay()) {
|
||||
habbo.getRoomUnit().cmdStand = true;
|
||||
habbo.getRoomUnit().setBodyRotation(RoomUserRotation.values()[habbo.getRoomUnit().getBodyRotation().getValue() - habbo.getRoomUnit().getBodyRotation().getValue() % 2]);
|
||||
habbo.getRoomUnit().removeStatus(RoomUnitStatus.SIT);
|
||||
|
Loading…
Reference in New Issue
Block a user