mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-20 04:02:35 +01:00
Fix modtool room info
This commit is contained in:
parent
766fa148d0
commit
8b6c18c11d
@ -11,10 +11,9 @@ public class ModToolRequestRoomInfoEvent extends MessageHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
if (this.client.getHabbo().hasPermission(Permission.ACC_SUPPORTTOOL)) {
|
if (this.client.getHabbo().hasPermission(Permission.ACC_SUPPORTTOOL)) {
|
||||||
//int roomId = this.packet.readInt();
|
int roomId = this.packet.readInt();
|
||||||
|
|
||||||
Room room = this.client.getHabbo().getHabboInfo().getCurrentRoom();
|
Room room = Emulator.getGameEnvironment().getRoomManager().getRoom(roomId);
|
||||||
//Emulator.getGameEnvironment().getRoomManager().getRoom(roomId);
|
|
||||||
|
|
||||||
if (room != null) {
|
if (room != null) {
|
||||||
this.client.sendResponse(new ModToolRoomInfoComposer(room));
|
this.client.sendResponse(new ModToolRoomInfoComposer(room));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user