Lava is different from Energy

This commit is contained in:
Noah Pilarski 2022-11-26 17:00:39 -05:00
parent b0faebf85f
commit f7bad48235

View File

@ -18,7 +18,7 @@ namespace NewHorizons.OtherMods.AchievementsPlus.NH
public static void OnPlayerDeath(DeathType deathType)
{
if (deathType == DeathType.Energy && Locator.GetPlayerDetector().GetComponent<FluidDetector>()._activeVolumes.Any(fluidVolume => fluidVolume is TornadoFluidVolume or TornadoBaseFluidVolume or HurricaneFluidVolume))
if (deathType == DeathType.Lava && Locator.GetPlayerDetector().GetComponent<FluidDetector>()._activeVolumes.Any(fluidVolume => fluidVolume is TornadoFluidVolume or TornadoBaseFluidVolume or HurricaneFluidVolume))
{
AchievementHandler.Earn(UNIQUE_ID);
}