- edited description
Mod Tools: Room tool checkbox order changed
Issue #756
resolved
Problem
The mod tool has a room tool where you can change room settings and select three different options.
It seems that the order is messed up or changed, because:
- When I select the first checkbox it changes the room name.
- When I select the second checkbox it kicks the users
- When I select the third checkbox it locks the room
I'm not sure if this actually changed or that my texts are messed up (I couldn't find where these texts should be). If that's the case you can close this issue.
Possible solution
Re-ordering the ints in ModToolChangeRoomSettingsEvent.java:21 solved my problem.
Before:
Emulator.getGameEnvironment().getModToolManager().roomAction(room, this.client.getHabbo(), this.packet.readInt() == 1, this.packet.readInt() == 1, this.packet.readInt() == 1);
After:
boolean lockDoor = this.packet.readInt() == 1;
boolean changeTitle = this.packet.readInt() == 1;
boolean kickUsers = this.packet.readInt() == 1;
Emulator.getGameEnvironment().getModToolManager().roomAction(room, this.client.getHabbo(), kickUsers, lockDoor, changeTitle);
Comments (3)
-
reporter -
repo owner - changed status to resolved
Fixed in 1.10.0
-
repo owner - removed version
Removing version: 1.9.0 (automated comment)
- Log in to comment