From b70d22623544cc84cf5b65d5026bbf11e95d5c42 Mon Sep 17 00:00:00 2001 From: TomPlum Date: Tue, 29 Dec 2020 10:12:58 +0000 Subject: [PATCH] Math | Hotfix - AdventMap Override Data Removed Copy (1.6.3) --- build.gradle.kts | 2 +- src/main/kotlin/io/github/tomplum/libs/math/map/AdventMap.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6497ade..585e5c4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,7 +18,7 @@ plugins { } group = "io.github.tomplum" -version = "1.6.2" +version = "1.6.3" apply(plugin = "kotlin") diff --git a/src/main/kotlin/io/github/tomplum/libs/math/map/AdventMap.kt b/src/main/kotlin/io/github/tomplum/libs/math/map/AdventMap.kt index ad128d7..43782a7 100644 --- a/src/main/kotlin/io/github/tomplum/libs/math/map/AdventMap.kt +++ b/src/main/kotlin/io/github/tomplum/libs/math/map/AdventMap.kt @@ -115,8 +115,8 @@ abstract class AdventMap> { * Completely overrides the current data map. * @param newData A map of new data to override with. */ - fun overwriteData(newData: Map) { - data = newData.toMutableMap() + fun overwriteData(newData: MutableMap) { + data = newData } /**