However, it did prevent Prussia from invading parts of Saxony