public static void ChooseWaterStyle(ref int style) { foreach (ModWaterStyle waterStyle in waterStyles) { if (waterStyle.ChooseWaterStyle()) { style = waterStyle.Type; } } WorldHooks.ChooseWaterStyle(ref style); }