mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Fixed deleting photos.
This commit is contained in:
parent
0c05af80c2
commit
c38f689e39
@ -1,6 +1,7 @@
|
|||||||
package com.eu.habbo.messages.incoming.rooms.items;
|
package com.eu.habbo.messages.incoming.rooms.items;
|
||||||
|
|
||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
|
import com.eu.habbo.habbohotel.items.interactions.InteractionExternalImage;
|
||||||
import com.eu.habbo.habbohotel.items.interactions.InteractionPostIt;
|
import com.eu.habbo.habbohotel.items.interactions.InteractionPostIt;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||||
@ -22,7 +23,7 @@ public class PostItDeleteEvent extends MessageHandler
|
|||||||
|
|
||||||
HabboItem item = room.getHabboItem(itemId);
|
HabboItem item = room.getHabboItem(itemId);
|
||||||
|
|
||||||
if (item instanceof InteractionPostIt)
|
if (item instanceof InteractionPostIt || item instanceof InteractionExternalImage)
|
||||||
{
|
{
|
||||||
if (item.getUserId() == this.client.getHabbo().getHabboInfo().getId() || room.isOwner(this.client.getHabbo()))
|
if (item.getUserId() == this.client.getHabbo().getHabboInfo().getId() || room.isOwner(this.client.getHabbo()))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user