Fix for implants causing map loading hang (#275)

This commit is contained in:
Mazo 2019-10-06 19:00:28 +01:00 committed by Fate-JH
parent c4706134cc
commit 6cc6a663f5

View file

@ -243,17 +243,10 @@ object AvatarConverter {
*/ */
private def MakeImplantEffectList(implants : Seq[(ImplantType.Value, Long, Boolean)]) : List[ImplantEffects.Value] = { private def MakeImplantEffectList(implants : Seq[(ImplantType.Value, Long, Boolean)]) : List[ImplantEffects.Value] = {
implants.collect { implants.collect {
case (implant,_,true) => case (ImplantType.AdvancedRegen,_,true) => ImplantEffects.RegenEffects
implant match { case (ImplantType.DarklightVision,_,true) => ImplantEffects.DarklightEffects
case ImplantType.AdvancedRegen => case (ImplantType.PersonalShield,_,true) => ImplantEffects.PersonalShieldEffects
ImplantEffects.RegenEffects case (ImplantType.Surge,_,true) => ImplantEffects.SurgeEffects
case ImplantType.DarklightVision =>
ImplantEffects.DarklightEffects
case ImplantType.PersonalShield =>
ImplantEffects.PersonalShieldEffects
case ImplantType.Surge =>
ImplantEffects.SurgeEffects
}
}.toList }.toList
} }