null safety on the other three candles
This commit is contained in:
1 parent
f6d0971e05
commit
fca540ec37
3 files changed
+6
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user