diff --git a/TShockAPI/Rest/Rest.cs b/TShockAPI/Rest/Rest.cs index 51d783f57..40a908efd 100644 --- a/TShockAPI/Rest/Rest.cs +++ b/TShockAPI/Rest/Rest.cs @@ -94,17 +94,17 @@ public EscapedParameterCollection(IParameterCollection collection) /// /// public IEnumerator GetEnumerator() - { - return GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() { foreach (IParameter param in _collection) { yield return new EscapedParameter(param); } } + + IEnumerator IEnumerable.GetEnumerator() + { + return this.GetEnumerator(); + } } ///