Skip to content

Commit

Permalink
Fix folia adaption.
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicity188 committed Nov 29, 2024
1 parent fd7683c commit 5134215
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public enum NMSVersion {
V1_20_R3(20,3, 22),
V1_20_R4(20,4, 32),
V1_21_R1(21,1, 34),
V1_21_R2(21,2, 42)
V1_21_R2(21,2, 42),
V1_21_R3(21,3, 46)
;
/**
* Main version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ data class MinecraftVersion(
val current = MinecraftVersion(Bukkit.getBukkitVersion()
.substringBefore('-'))

val version1_21_4 = MinecraftVersion(1, 21, 4)
val version1_21_3 = MinecraftVersion(1, 21, 3)
val version1_21_2 = MinecraftVersion(1, 21, 2)
val version1_21_1 = MinecraftVersion(1, 21, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ class NMSImpl : NMS {
override fun getScaledHealth(): Float {
return player.scaledHealth
}
override fun getHealthScale(): Double {
return player.healthScale
}
override fun getFirstPlayed(): Long {
return player.firstPlayed
}
Expand Down

0 comments on commit 5134215

Please sign in to comment.