null safety on the other three candles

This commit is contained in:
Ozzatron committed 2020-01-17 08:53:47 -05:00
1 parent f6d0971e05
commit fca540ec37
3 files changed
+6

No files matched your search

+2
View File
@@ -36,6 +36,8 @@ namespace CalamityMod.Tiles.Furniture
public override void NearbyEffects(int i, int j, bool closer)
{
Player player = Main.LocalPlayer;
if (player is null)
return;
if (!player.dead && player.active)
player.AddBuff(ModContent.BuffType<BlueSpeedCandle>(), 20);
}
+2
View File
@@ -36,6 +36,8 @@ namespace CalamityMod.Tiles.Furniture
public override void NearbyEffects(int i, int j, bool closer)
{
Player player = Main.LocalPlayer;
if (player is null)
return;
if (!player.dead && player.active)
player.AddBuff(ModContent.BuffType<PinkHealthCandle>(), 20);
}
+2
View File
@@ -36,6 +36,8 @@ namespace CalamityMod.Tiles.Furniture
public override void NearbyEffects(int i, int j, bool closer)
{
Player player = Main.LocalPlayer;
if (player is null)
return;
if (!player.dead && player.active)
player.AddBuff(ModContent.BuffType<PurpleDefenseCandle>(), 20);
}