mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-21 12:32:37 +01:00
Fixed onclick method
This commit is contained in:
parent
f4719ee042
commit
771f386b56
@ -6,7 +6,6 @@ import com.eu.habbo.habbohotel.items.Item;
|
|||||||
import com.eu.habbo.habbohotel.items.interactions.interfaces.ConditionalGate;
|
import com.eu.habbo.habbohotel.items.interactions.interfaces.ConditionalGate;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.CustomNotificationComposer;
|
|
||||||
import com.eu.habbo.threading.runnables.CloseGate;
|
import com.eu.habbo.threading.runnables.CloseGate;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
@ -49,13 +48,7 @@ public class InteractionCostumeGate extends InteractionDefault implements Condit
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(GameClient client, Room room, Object[] objects) throws Exception {
|
public void onClick(GameClient client, Room room, Object[] objects) throws Exception {
|
||||||
if (client != null) {
|
super.onClick(client, room, objects);
|
||||||
if (this.canWalkOn(client.getHabbo().getRoomUnit(), room, null)) {
|
|
||||||
super.onClick(client, room, objects);
|
|
||||||
} else {
|
|
||||||
client.sendResponse(new CustomNotificationComposer(CustomNotificationComposer.GATE_NO_HC));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -67,6 +60,6 @@ public class InteractionCostumeGate extends InteractionDefault implements Condit
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRejected(RoomUnit roomUnit, Room room, Object[] objects) {
|
public void onRejected(RoomUnit roomUnit, Room room, Object[] objects) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user