diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/util/SBPattern.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/util/SBPattern.kt index 59ce1329..ba44fb2a 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/util/SBPattern.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/util/SBPattern.kt @@ -34,7 +34,7 @@ class SBPattern private constructor( } override fun equals(other: Any?): Boolean { - return other is SBPattern && other.raw == raw && other.names == names && other.pieces == pieces && other.params == params + return other === this || other is SBPattern && other.raw == raw && other.names == names && other.pieces == pieces && other.params == params } @Volatile