From 3f4c34f5e36c68d8e5ca122536535804be8d1011 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 22 Feb 2023 10:02:08 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20identity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/ru/dbotthepony/kstarbound/util/SBPattern.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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