Skip to content

Commit

Permalink
Remove hypixel as a legacy sneaking recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
lowercasebtw committed Dec 22, 2024
1 parent f0dfe1b commit a289483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/mixces/animatium/AnimatiumClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AnimatiumClient : ClientModInitializer {
val client = MinecraftClient.getInstance()
val networkHandler = client.networkHandler ?: return false
val brand = networkHandler.brand?.lowercase() ?: return false
return if (brand.contains("hypixel") || brand.contains("hygot") || brand.contains("1.8")) {
return if (brand.contains("1.8")) {
true
} else {
val serverInfo = networkHandler.serverInfo
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/me/mixces/animatium/util/PlayerUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class PlayerUtils {

@JvmStatic
fun getLegacySneakingDimensions(player: PlayerEntity, defaultPose: EntityPose): EntityDimensions {
// Changes the sneak height to the one from <=1.13.2 on Hypixel & Loyisa & Bedwars Practice & Bridger Land
// Changes the sneak height to the one from <=1.13.2 on Loyisa & Bedwars Practice & Bridger Land
val dimensions = Objects.requireNonNull(PlayerEntityAccessor.getPoseDimensions()).getOrDefault(
if (AnimatiumClient.isLegacySupportedVersion()) null else defaultPose,
PlayerEntity.STANDING_DIMENSIONS
Expand Down

0 comments on commit a289483

Please sign in to comment.