ok, I found out the reason: I can't check the flags of an invisible block, tho i can get its texture's name. So I just set the 'none'-flag at each texture, and it works (ofcourse it also works with visible blocks! But for my game i need invisible blocks )