Merge branch 'fix/mannequin-save-name-event' into 'dev'

MannequinSaveNameEvent now checks for acc_anyroomowner

See merge request morningstar/Arcturus-Community!397
This commit is contained in:
Remco 2021-02-03 16:54:54 +00:00
commit 1949ed4c66

View File

@ -9,7 +9,7 @@ public class MannequinSaveNameEvent extends MessageHandler {
@Override
public void handle() throws Exception {
Room room = this.client.getHabbo().getHabboInfo().getCurrentRoom();
if (room == null || this.client.getHabbo().getHabboInfo().getId() != room.getOwnerId())
if (room == null || !room.isOwner(this.client.getHabbo()))
return;
HabboItem item = room.getHabboItem(this.packet.readInt());