MannequinSaveNameEvent now checks for acc_anyroomowner

This commit is contained in:
Remco 2021-02-03 17:53:00 +01:00
parent c4495408b5
commit 2bb55a8e38

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());