merged with current 3.1.3, added Housing und permgangs (made by xmscx - thanks to him for this work)