Pump components with a physics body updates it hull when active (-> possible to make portable pump items). Closes #463

This commit is contained in:
Joonas Rikkonen
2018-07-11 10:59:40 +03:00
parent 1c358fc4c0
commit ce88519c13

View File

@@ -99,7 +99,9 @@ namespace Barotrauma.Items.Components
ApplyStatusEffects(ActionType.OnActive, deltaTime, null);
if (hull1 == null) return;
//check the hull if the item is movable
if (item.body != null) GetHull();
if (hull1 == null) return;
float powerFactor = currPowerConsumption <= 0.0f ? 1.0f : voltage;