From 9fbcebeaade1f98506895c406c42d2727530588f Mon Sep 17 00:00:00 2001 From: brenoepic <59066707+brenoepics@users.noreply.github.com> Date: Fri, 29 Apr 2022 16:59:05 -0300 Subject: [PATCH] Cast delay to long --- .../items/interactions/pets/InteractionPetTree.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetTree.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetTree.java index 698f480c..35965fe6 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetTree.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetTree.java @@ -1,14 +1,10 @@ package com.eu.habbo.habbohotel.items.interactions.pets; import com.eu.habbo.Emulator; -import com.eu.habbo.habbohotel.bots.Bot; import com.eu.habbo.habbohotel.items.Item; import com.eu.habbo.habbohotel.items.interactions.InteractionDefault; import com.eu.habbo.habbohotel.pets.Pet; -import com.eu.habbo.habbohotel.pets.PetTasks; import com.eu.habbo.habbohotel.rooms.*; -import com.eu.habbo.habbohotel.users.Habbo; -import com.eu.habbo.habbohotel.users.HabboItem; import com.eu.habbo.threading.runnables.PetClearPosture; import java.sql.ResultSet; @@ -69,7 +65,7 @@ public class InteractionPetTree extends InteractionDefault { } pet.getRoomUnit().setCanWalk(true); pet.packetUpdate = true; - }, 2500 + (Emulator.getRandom().nextInt(20) * 500)); + }, (long) 2500 + (Emulator.getRandom().nextInt(20) * 500)); } else { pet.getRoomUnit().setRotation(RoomUserRotation.values()[this.getRotation()]); pet.getRoomUnit().clearStatus();