File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
common/src/main/kotlin/com/lambda Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ abstract class LambdaCommand(
1212 val usage : String = " " ,
1313 val description : String = " " ,
1414) : Nameable {
15-
15+ // ToDo: Include usage and description in the help command
1616 init {
1717 (listOf (name) + aliases).forEach {
1818 val argument = LiteralArgumentBuilder .literal<CommandSource >(it)
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ object Replay : Module(
121121 it.input.removeFirstOrNull()?.update(event.input)
122122 it.position.removeFirstOrNull()?.let a@{ pos ->
123123 val diff = pos.subtract(player.pos).length()
124- if (diff < 0.001 ) return @a
124+ if (diff < 0.02 ) return @a
125125
126126 this @Replay.warn(" Position deviates from the recording by ${
127127 " %.3f" .format(diff)
@@ -200,7 +200,11 @@ object Replay : Module(
200200 if (repeats >= 0 ) repeats++
201201 buffer = playback?.duplicate()
202202 this @Replay.info(buildText {
203- color(GuiSettings .primaryColor) { literal(" [$repeats / $loops ]" ) }
203+ if (repeats > 0 ) {
204+ color(GuiSettings .primaryColor) { literal(" [$repeats / $loops ]" ) }
205+ } else {
206+ color(GuiSettings .primaryColor) { literal(" [$repeats /∞]" ) }
207+ }
204208 literal(" Replay looped." )
205209 })
206210 } else {
@@ -266,7 +270,7 @@ object Replay : Module(
266270 info(buildText {
267271 literal(" Replaying recording #" )
268272 color(GuiSettings .primaryColor) { literal(index.toString()) }
269- literal(" . Duration: " )
273+ literal(" of " )
270274 color(GuiSettings .primaryColor) { literal(recording.duration.toString()) }
271275 })
272276 return CommandResult .success()
You can’t perform that action at this time.
0 commit comments