Atmos device performance improvements (#26493)
* Atmos device performance improvements * AtmosDirection perf improvements * Fix errors * Add GasTileOverlayComponent arguments * Make excite no longer invalidate a tile
This commit is contained in:
@@ -94,7 +94,7 @@ public sealed class PneumaticCannonSystem : SharedPneumaticCannonSystem
|
||||
return;
|
||||
|
||||
// this should always be possible, as we'll eject the gas tank when it no longer is
|
||||
var environment = _atmos.GetContainingMixture(cannon, false, true);
|
||||
var environment = _atmos.GetContainingMixture(cannon.Owner, false, true);
|
||||
var removed = _gasTank.RemoveAir(gas.Value, component.GasUsage);
|
||||
if (environment != null && removed != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user