Skip to content

Commit

Permalink
3.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Jan 11, 2024
2 parents b093601 + c030ce7 commit 7dab8ea
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 49 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.github.dimadencep.mods.rrls.mixins.compat;

import com.github.dimadencep.mods.rrls.Rrls;
import net.minecraft.client.resource.server.PackStateChangeCallback;
import net.minecraft.client.resource.server.ServerResourcePackManager;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

import java.util.UUID;

@Mixin(ServerResourcePackManager.class)
public class ServerResourcePackManagerMixin {
@Shadow
@Final
PackStateChangeCallback stateChangeCallback;

@Inject(
method = "onAdd",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/resource/server/ServerResourcePackManager;onPackChanged()V"
)
)
public void earlyResourcePackStatusSend(UUID id, ServerResourcePackManager.PackEntry pack, CallbackInfo ci) {
if (Rrls.MOD_CONFIG.earlyPackStatusSend) {
this.stateChangeCallback.onFinish(pack.id, PackStateChangeCallback.FinishState.APPLIED);
}
}
}
13 changes: 10 additions & 3 deletions common/src/main/resources/assets/rrls/lang/tt_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@
"text.autoconfig.rrls.title": "Remove Reloading Screen көйләүләре",
"text.autoconfig.rrls.option.hideType": "Яңадан йөкләү экранын яшерү",
"text.autoconfig.rrls.option.rgbProgress": "Төсле прогрессбар",
"text.autoconfig.rrls.option.rgbProgress.@Tooltip": "§cЭпилепсияне чакыра ала",
"text.autoconfig.rrls.option.rgbProgress.@Tooltip": "§cЭПИЛЕПСИЯНЕ ЧАКЫРА АЛА",
"text.autoconfig.rrls.option.ignoreScreen": "Йөкләү экранын яшерү",
"text.autoconfig.rrls.option.ignoreScreen.@Tooltip": "Проблемаларны чакыра ала",
"text.autoconfig.rrls.option.ignoreScreen.@Tooltip": "ПРОБЛЕМАЛАРНЫ ЧАКЫРА АЛА",
"text.autoconfig.rrls.option.showIn": "Ресурслар яңадан йөкләү процессын күрсәтү",
"text.autoconfig.rrls.option.type": "Яңадан йөкләгәндә күрсәтелүче",
"text.autoconfig.rrls.option.reloadText": "Күрсәтеләчәҡ текст, әгәр TEXT өстә сайланса",
"text.autoconfig.rrls.option.resetResources": "Йөкләп булмаганда ресурсларын ташлату",
"text.autoconfig.rrls.option.reInitScreen": "Яңадан йөкләүдән соң хәзерге экран кабат әзерләү",
"text.autoconfig.rrls.option.reInitScreen.@Tooltip": "Функция сүндерелгәндә, яңадан йөкләүне тәмамланганнан соң асылынып торуны бетерә ала"
"text.autoconfig.rrls.option.reInitScreen.@Tooltip": "Функция сүндерелгәндә, яңадан йөкләүне тәмамланганнан соң асылынып торуны бетерә ала",
"text.autoconfig.rrls.option.earlyPackStatusSend": "Серверның ресурс җыелмасы турында халәтне иртә җибәрү",
"text.autoconfig.rrls.option.earlyPackStatusSend.@Tooltip[0]": "Уенчы ресурсларны йөкләү өчен кайбер серверлар махсус көтә, бу сәбәпле уен ялгыш күрсәтә ала",
"text.autoconfig.rrls.option.earlyPackStatusSend.@Tooltip[1]": "Мәсәлән: Ресурслар яңадан йөкләнгәндә Сез җир астында булды",
"text.autoconfig.rrls.option.animationSpeed": "Спләш анимациясе тизлеге",
"text.autoconfig.rrls.option.animationSpeed.@Tooltip": "Миллисекундта"
}
2 changes: 1 addition & 1 deletion common/src/main/resources/rrls-common.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"MinecraftClientMixin",
"SplashOverlayMixin",
"TitleScreenMixin",
"compat.ClientCommonNetworkHandlerMixin",
"compat.ServerResourcePackManagerMixin",
"compat.OverlayMixin",
"compat.SplashUseFix"
],
Expand Down
2 changes: 2 additions & 0 deletions common/src/main/resources/rrls.accesswidener
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
accessWidener v2 named
accessible field net/minecraft/client/resource/server/ServerResourcePackManager$PackEntry id Ljava/util/UUID;
accessible field net/minecraft/client/MinecraftClient overlay Lnet/minecraft/client/gui/screen/Overlay;
accessible class net/minecraft/client/resource/server/ServerResourcePackManager$PackEntry
accessible class net/minecraft/client/MinecraftClient$LoadingContext
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx4G
forge_version = 20.4.73-beta

# Mod Properties
mod_version = 3.2.5
mod_version = 3.2.6
maven_group = com.github.dima_dencep.mods
archives_base_name = rrls

Expand Down

0 comments on commit 7dab8ea

Please sign in to comment.