Pump components with a physics body updates it hull when active (-> possible to make portable pump items). Closes #463
This commit is contained in:
@@ -99,6 +99,8 @@ namespace Barotrauma.Items.Components
|
|||||||
|
|
||||||
ApplyStatusEffects(ActionType.OnActive, deltaTime, null);
|
ApplyStatusEffects(ActionType.OnActive, deltaTime, null);
|
||||||
|
|
||||||
|
//check the hull if the item is movable
|
||||||
|
if (item.body != null) GetHull();
|
||||||
if (hull1 == null) return;
|
if (hull1 == null) return;
|
||||||
|
|
||||||
float powerFactor = currPowerConsumption <= 0.0f ? 1.0f : voltage;
|
float powerFactor = currPowerConsumption <= 0.0f ? 1.0f : voltage;
|
||||||
|
|||||||
Reference in New Issue
Block a user