Skip to content

Commit

Permalink
Merge branch 'refs/heads/version/1.20.1' into version/1.18.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle.properties
  • Loading branch information
Erdragh committed Jun 1, 2024
2 parents c4ac1f4 + 424bc8f commit a64f99e
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 14 deletions.
241 changes: 241 additions & 0 deletions .idea/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.5.2
Fix tps command using wrong numbers for calculation

# 1.5.1
Hotfix for Versions 1.18.2 - 1.20.1 fixing missing classes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ class MinecraftHandler(private val server: MinecraftServer) : ListenerAdapter()
*/
fun tickReport(): String {
// Idea from the TPSCommand in Forge
return AstralBotTextConfig.TICK_REPORT.get().replace("{{mspt}}", numberFormat.format(server.averageTickTime * 1000))
return AstralBotTextConfig.TICK_REPORT.get().replace("{{mspt}}", numberFormat.format(server.averageTickTime))
.replace(
"{{tps}}", numberFormat.format(
min(
20.0,
1000.0 / (server.averageTickTime * 1000)
1000.0 / (server.averageTickTime)
)
)
)
Expand Down
23 changes: 13 additions & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
kotlin.code.style=official
org.gradle.jvmargs=-Xmx3G -XX:ThreadStackSize=4096 -XX:CompilerThreadStackSize=4096

license=MIT
title=AstralBot
description=Discord Bot and Minecraft Mod in one bundle.
credits=Erdragh
version=1.5.1
group=dev.erdragh.astralbot
modId=astralbot
modAuthor=Erdragh

# Minecraft things
enabledPlatforms=fabric,forge
# Specified here because it's used in both the fabric and common subproject

# Fabric
fabricLoaderVersion=0.15.11
fabricApiVersion=0.77.0
fabricKotlinVersion=1.11.0+kotlin.2.0.0


version=1.5.2
group=dev.erdragh.astralbot
modId=astralbot
modAuthor=Erdragh

license=MIT
title=AstralBot
description=Discord Bot and Minecraft Mod in one bundle.
credits=Erdragh

minecraftVersion=1.18.2
parchmentVersion=2022.11.06

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-rc-2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down

0 comments on commit a64f99e

Please sign in to comment.