mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Correct amount of max rooms
This commit is contained in:
parent
d327f8cbe6
commit
7b1e94cf17
@ -9,7 +9,7 @@ public class RequestCanCreateRoomEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int count = Emulator.getGameEnvironment().getRoomManager().getRoomsForHabbo(this.client.getHabbo()).size();
|
||||
int max = this.client.getHabbo().getHabboStats().maxRooms;
|
||||
int max = this.client.getHabbo().getHabboStats().hasActiveClub() ? RoomManager.MAXIMUM_ROOMS_HC : RoomManager.MAXIMUM_ROOMS_USER;
|
||||
this.client.sendResponse(new CanCreateRoomComposer(count, max));
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public class RequestCreateRoomEvent extends MessageHandler {
|
||||
return;
|
||||
|
||||
int count = Emulator.getGameEnvironment().getRoomManager().getRoomsForHabbo(this.client.getHabbo()).size();
|
||||
int max = this.client.getHabbo().getHabboStats().maxRooms;
|
||||
int max = this.client.getHabbo().getHabboStats().hasActiveClub() ? RoomManager.MAXIMUM_ROOMS_HC : RoomManager.MAXIMUM_ROOMS_USER;
|
||||
|
||||
if (count >= max) {
|
||||
this.client.sendResponse(new CanCreateRoomComposer(count, max));
|
||||
|
Loading…
Reference in New Issue
Block a user