Fixed bug with resetting tick count to 0 and taking players money when unit failed to be placed near the factory.