Broken junction boxes can't pass power from a box to another (wtf how have I not noticed this)
This commit is contained in:
@@ -125,6 +125,8 @@ namespace Barotrauma.Items.Components
|
|||||||
Item it = recipient.Item;
|
Item it = recipient.Item;
|
||||||
if (it == null) continue;
|
if (it == null) continue;
|
||||||
|
|
||||||
|
if (it.Condition <= 0.0f) continue;
|
||||||
|
|
||||||
Powered powered = it.GetComponent<Powered>();
|
Powered powered = it.GetComponent<Powered>();
|
||||||
if (powered == null || !powered.IsActive) continue;
|
if (powered == null || !powered.IsActive) continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user