Add proper packet handling, fix box crafting server crash