Clients can create firesources if server tells them to, extinguishing fixes
This commit is contained in:
@@ -163,7 +163,15 @@ namespace Barotrauma.Items.Components
|
||||
displayPos += item.CurrentHull.Submarine.Position;
|
||||
|
||||
Hull hull = Hull.FindHull(displayPos, item.CurrentHull);
|
||||
if (hull != null) hull.Extinquish(deltaTime, ExtinquishAmount, displayPos);
|
||||
if (hull != null)
|
||||
{
|
||||
hull.Extinquish(deltaTime, ExtinquishAmount, displayPos);
|
||||
if (hull != item.CurrentHull)
|
||||
{
|
||||
item.CurrentHull.Extinquish(deltaTime, ExtinquishAmount, displayPos);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Body targetBody = Submarine.PickBody(rayStart, rayEnd, ignoredBodies);
|
||||
|
||||
Reference in New Issue
Block a user