From f84be00933150677656a520e8a83d3e4a0be9ae2 Mon Sep 17 00:00:00 2001 From: KrewsOrg Date: Fri, 3 May 2019 01:30:07 +0100 Subject: [PATCH] Forgot this for last commit. SendRoomUnitEffectComposer. - Credits to Beny. --- .../runnables/SendRoomUnitEffectComposer.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/java/com/eu/habbo/threading/runnables/SendRoomUnitEffectComposer.java diff --git a/src/main/java/com/eu/habbo/threading/runnables/SendRoomUnitEffectComposer.java b/src/main/java/com/eu/habbo/threading/runnables/SendRoomUnitEffectComposer.java new file mode 100644 index 00000000..7a70a931 --- /dev/null +++ b/src/main/java/com/eu/habbo/threading/runnables/SendRoomUnitEffectComposer.java @@ -0,0 +1,24 @@ +package com.eu.habbo.threading.runnables; + +import com.eu.habbo.habbohotel.rooms.Room; +import com.eu.habbo.habbohotel.rooms.RoomUnit; +import com.eu.habbo.messages.outgoing.rooms.users.RoomUserEffectComposer; + +public class SendRoomUnitEffectComposer implements Runnable +{ + private final Room room; + private final RoomUnit roomUnit; + + public SendRoomUnitEffectComposer(Room room, RoomUnit roomUnit) { + this.room = room; + this.roomUnit = roomUnit; + } + + @Override + public void run() + { + if(this.room != null && this.roomUnit != null) { + this.room.sendComposer(new RoomUserEffectComposer(roomUnit).compose()); + } + } +} \ No newline at end of file