Skip to content

Commit 53117f7

Browse files
Ignore PVE damage (like zombies or ToolCupboard decay)
1 parent cec02bb commit 53117f7

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

AntiBlowtorch/AntiBlowtorch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net48</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<RootNamespace>RestoreMonarchy.AntiBlowtorch</RootNamespace>
7-
<Version>1.0.0</Version>
7+
<Version>1.0.1</Version>
88
</PropertyGroup>
99

1010
<ItemGroup>

AntiBlowtorch/AntiBlowtorchPlugin.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ private void OnStructureDamaged(CSteamID instigatorSteamId, Transform structureT
187187
return;
188188
}
189189
StructureData structureData = drop.GetServersideData();
190+
191+
if (instigatorSteamId == default)
192+
{
193+
return;
194+
}
195+
190196
if (instigatorSteamId.m_SteamID == structureData.owner)
191197
{
192198
return;
@@ -212,6 +218,11 @@ private void OnBarricadeDamaged(CSteamID instigatorSteamID, Transform barricadeT
212218
}
213219

214220
BarricadeData barricadeData = drop.GetServersideData();
221+
if (instigatorSteamID == default)
222+
{
223+
return;
224+
}
225+
215226
if (instigatorSteamID.m_SteamID == barricadeData.owner)
216227
{
217228
return;

thumbnail.png

94.6 KB
Loading

0 commit comments

Comments
 (0)