Mod Tools: Room tool checkbox order changed

Issue #756 resolved
Yeet created an issue

Problem

The mod tool has a room tool where you can change room settings and select three different options.

Screenshot_3.png

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)

  1. Log in to comment