From fe31b37aa108b583cf9f174e58eb737bad35e68c Mon Sep 17 00:00:00 2001 From: Remco Date: Fri, 29 Jan 2021 19:28:18 +0100 Subject: [PATCH] Bot now only serves once when the distance is more than reach distance --- src/main/java/com/eu/habbo/habbohotel/bots/ButlerBot.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/bots/ButlerBot.java b/src/main/java/com/eu/habbo/habbohotel/bots/ButlerBot.java index ab81bb10..b5acb9f2 100644 --- a/src/main/java/com/eu/habbo/habbohotel/bots/ButlerBot.java +++ b/src/main/java/com/eu/habbo/habbohotel/bots/ButlerBot.java @@ -90,7 +90,6 @@ public class ButlerBot extends Bot { // Step 2: Prepare tasks for when the Bot (carrying the handitem) reaches the Habbo final List tasks = new ArrayList<>(); - tasks.add(() -> System.out.println("Serving drinks!")); tasks.add(new RoomUnitGiveHanditem(serveEvent.habbo.getRoomUnit(), serveEvent.habbo.getHabboInfo().getCurrentRoom(), serveEvent.itemId)); tasks.add(new RoomUnitGiveHanditem(this.getRoomUnit(), serveEvent.habbo.getHabboInfo().getCurrentRoom(), 0)); @@ -110,7 +109,6 @@ public class ButlerBot extends Bot { List failedReached = new ArrayList<>(); failedReached.add(() -> { if (distanceBetweenBotAndHabbo <= Emulator.getConfig().getInt("hotel.bot.butler.servedistance", 8)) { - System.out.println("Failed reached!"); for (Runnable task : tasks) { task.run(); }