Skip to content

Commit

Permalink
Math | Hotfix - AdventMap Override Data Removed Copy (1.6.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPlum committed Dec 29, 2020
1 parent b30e5f5 commit b70d226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
}

group = "io.github.tomplum"
version = "1.6.2"
version = "1.6.3"

apply(plugin = "kotlin")

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/io/github/tomplum/libs/math/map/AdventMap.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ abstract class AdventMap<P: Point, T: MapTile<*>> {
* Completely overrides the current data map.
* @param newData A map of new data to override with.
*/
fun overwriteData(newData: Map<P, T>) {
data = newData.toMutableMap()
fun overwriteData(newData: MutableMap<P, T>) {
data = newData
}

/**
Expand Down

0 comments on commit b70d226

Please sign in to comment.