mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
Mannequin save look event now checks for acc_anyroomowner
This commit is contained in:
parent
d7e96d9475
commit
4c096ae8d1
@ -1,7 +1,6 @@
|
||||
package com.eu.habbo.messages.incoming.rooms.items;
|
||||
|
||||
import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.permissions.Permission;
|
||||
import com.eu.habbo.habbohotel.rooms.Room;
|
||||
import com.eu.habbo.habbohotel.users.Habbo;
|
||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||
@ -25,7 +24,7 @@ public class MannequinSaveLookEvent extends MessageHandler {
|
||||
|
||||
StringBuilder look = new StringBuilder();
|
||||
|
||||
for (String s : this.client.getHabbo().getHabboInfo().getLook().split("\\.")) {
|
||||
for (String s : habbo.getHabboInfo().getLook().split("\\.")) {
|
||||
if (!s.contains("hr") && !s.contains("hd") && !s.contains("he") && !s.contains("ea") && !s.contains("ha") && !s.contains("fa")) {
|
||||
look.append(s).append(".");
|
||||
}
|
||||
@ -36,9 +35,9 @@ public class MannequinSaveLookEvent extends MessageHandler {
|
||||
}
|
||||
|
||||
if (data.length == 3) {
|
||||
item.setExtradata(this.client.getHabbo().getHabboInfo().getGender().name().toLowerCase() + ":" + look + ":" + data[2]);
|
||||
item.setExtradata(habbo.getHabboInfo().getGender().name().toLowerCase() + ":" + look + ":" + data[2]);
|
||||
} else {
|
||||
item.setExtradata(this.client.getHabbo().getHabboInfo().getGender().name().toLowerCase() + ":" + look + ":" + this.client.getHabbo().getHabboInfo().getUsername() + "'s look.");
|
||||
item.setExtradata(habbo.getHabboInfo().getGender().name().toLowerCase() + ":" + look + ":" + habbo.getHabboInfo().getUsername() + "'s look.");
|
||||
}
|
||||
|
||||
item.needsUpdate(true);
|
||||
|
Loading…
Reference in New Issue
Block a user