fixing errors in tileentity and some with server