Server notifies clients about junction boxes breaking (+ clients aren't allowed to break them), fixed explosion lightSource positioning

This commit is contained in:
Regalis
2016-04-22 17:28:22 +03:00
parent c2242ad525
commit 3347fcdd20
3 changed files with 7 additions and 5 deletions
+2
View File
@@ -164,6 +164,8 @@ namespace Barotrauma
condition = MathHelper.Clamp(value, 0.0f, 100.0f);
if (condition == 0.0f && prev>0.0f)
{
new NetworkEvent(this.ID, false);
ApplyStatusEffects(ActionType.OnBroken, 1.0f, null);
foreach (FixRequirement req in FixRequirements)
{