From c5137177f366662a5d20ce3f25f7417a5f2a6ae9 Mon Sep 17 00:00:00 2001 From: brenoepic <59066707+brenoepics@users.noreply.github.com> Date: Fri, 29 Apr 2022 23:01:21 -0300 Subject: [PATCH] Sync roomunit methods --- src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java index 3f3beeb9..c668ee80 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java @@ -422,7 +422,7 @@ public class RoomUnit { } } - public boolean isInRoom() { + public synchronized boolean isInRoom() { return this.inRoom; } @@ -430,7 +430,7 @@ public class RoomUnit { this.inRoom = inRoom; } - public RoomUnitType getRoomUnitType() { + public synchronized RoomUnitType getRoomUnitType() { return this.roomUnitType; } @@ -459,7 +459,7 @@ public class RoomUnit { this.headRotation = headRotation; } - public DanceType getDanceType() { + public synchronized DanceType getDanceType() { return this.danceType; }