Ports a Pandemic machine fix

 from https://github.com/NTStation/NTstation13/pull/469