Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #72 from Trivernis/develop
Browse files Browse the repository at this point in the history
Fix #66, #70 Task progress being discarded on resume
  • Loading branch information
Trivernis authored Jul 11, 2020
2 parents 602b7c9 + 94f70c3 commit d078e11
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ idea {
}

group "net.trivernis"
version "1.2.0"
version "1.2.1"

sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ class GenerationManager(private val chunkmaster: Chunkmaster, private val server
shapeName: String
): GenerationTask {
val shape = when (shapeName) {
"circle" -> Circle(Pair(center.x, center.z), Pair(center.x, center.z), radius)
"square" -> Spiral(Pair(center.x, center.z), Pair(center.x, center.z), radius)
else -> Spiral(Pair(center.x, center.z), Pair(center.x, center.z), radius)
"circle" -> Circle(Pair(center.x, center.z), Pair(start.x, start.z), radius)
"square" -> Spiral(Pair(center.x, center.z), Pair(start.x, start.z), radius)
else -> Spiral(Pair(center.x, center.z), Pair(start.x, start.z), radius)
}

return if (PaperLib.isPaper()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class GenerationTaskPaper(

init {
updateGenerationAreaMarker()
count = shape.count
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class GenerationTaskSpigot(

init {
updateGenerationAreaMarker()
count = shape.count
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
main: net.trivernis.chunkmaster.Chunkmaster
name: Chunkmaster
version: '1.2.0'
version: '1.2.1'
description: Chunk commands plugin.
author: Trivernis
website: trivernis.net
Expand Down

0 comments on commit d078e11

Please sign in to comment.