Resolves #844 Join Team Gives the wrong effect

This commit is contained in:
Beny 2020-10-15 04:00:20 +02:00
parent 2f1820ae74
commit dcec439a44

View File

@ -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;