mtree line 29 fix

the problem was a missing "mod 6". Also the rotation is now comparing to
the previous value instead of allways being 180 ;)