From dcec439a441401785d4fa021ba9b731bb6605a60 Mon Sep 17 00:00:00 2001 From: Beny Date: Thu, 15 Oct 2020 04:00:20 +0200 Subject: [PATCH] Resolves #844 Join Team Gives the wrong effect --- .../items/interactions/wired/effects/WiredEffectJoinTeam.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectJoinTeam.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectJoinTeam.java index 48664fc6..f09e1a8a 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectJoinTeam.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectJoinTeam.java @@ -136,7 +136,7 @@ public class WiredEffectJoinTeam extends InteractionWiredEffect { if(delay > Emulator.getConfig().getInt("hotel.wired.max_delay", 20)) throw new WiredSaveException("Delay too long"); - this.teamColor = GameTeamColors.values()[packet.readInt()]; + this.teamColor = GameTeamColors.values()[team]; this.setDelay(delay); return true;