Fix server crash upon accessing the TileEntityAdvanced class.
Fix server->client packets not being sent at the right time.