1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

Compare commits

...

25 Commits

Author SHA1 Message Date
42f9103f72 Merge branch '1.19.1-multiloader' into 1.19-multiloader 2025-05-24 14:39:05 +03:00
e4b03a9989 Merge branch '1.19.3-multiloader' into 1.19.1-multiloader 2025-05-24 14:33:11 +03:00
034d4863b7 Merge branch '1.19.4-multiloader' into 1.19.3-multiloader 2025-05-24 14:21:37 +03:00
59ea3eb160 Merge branch '1.20-multiloader' into 1.19.4-multiloader 2025-05-24 14:17:51 +03:00
1a5f4ab2b0 Merge branch '1.20.2-multiloader' into 1.20-multiloader 2025-05-24 14:13:19 +03:00
a2c4da3c6e Merge branch '1.20.3-multiloader' into 1.20.2-multiloader 2025-05-24 14:07:13 +03:00
04e781d36f Merge branch '1.20.5-multiloader' into 1.20.3-multiloader 2025-05-24 14:05:58 +03:00
4b30b8b53d Merge branch '1.21-multiloader' into 1.20.5-multiloader 2025-05-24 14:00:30 +03:00
0921cf70bf Merge branch '1.21.5-multiloader' into 1.21-multiloader 2025-05-24 13:52:11 +03:00
760ac65ab3 bump version 2025-05-24 13:50:29 +03:00
2e7a9edc20 update CHANGELOG.md 2025-05-24 13:50:17 +03:00
8457e6f4ab apply mixins at higher priority (fixes #52) 2025-05-24 13:33:11 +03:00
66a9c1fbbf update mixins compatibilityLevel to java 17 2025-05-24 13:31:57 +03:00
e3754cda90 update bug_report.yaml 2025-05-24 12:03:52 +03:00
4af85d2c6c Merge branch '1.19.1-multiloader' into 1.19-multiloader 2025-05-03 11:32:50 +03:00
c36eb4db8c Merge branch '1.19.3-multiloader' into 1.19.1-multiloader 2025-05-03 11:32:23 +03:00
768125d11d Merge branch '1.19.4-multiloader' into 1.19.3-multiloader 2025-05-03 11:31:53 +03:00
90e4e2c2c9 backport to 1.19 2025-05-03 11:13:58 +03:00
1f265a0802 gradle properties for 1.19 2025-05-03 11:09:36 +03:00
e16fbffa5c gradle properties for 1.19.2 2025-05-03 11:05:40 +03:00
b67ea1bb29 Merge branch '1.19.3-multiloader' into 1.19.1-multiloader
# Conflicts:
#	gradle.properties
2025-05-03 11:04:29 +03:00
eeb405dd96 gradle properties for 1.19.3 2025-05-03 11:03:18 +03:00
3509b2e63c Merge branch '1.19.4-multiloader' into 1.19.3-multiloader
# Conflicts:
#	gradle.properties
2025-05-03 11:02:17 +03:00
17e2d1a7c3 backport to 1.19.1 2025-05-03 10:04:18 +03:00
4fb3972416 backport to 1.19.3 2025-05-03 09:46:28 +03:00
11 changed files with 61 additions and 27 deletions

View File

@@ -58,10 +58,12 @@ body:
id: steps
attributes:
label: Reproduction Steps
description: Provide step-by-step instructions or a video showing how to reproduce the issue.
placeholder: |
1.
2.
3.
Or a video demonstrating the issue.
validations:
required: true

View File

@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.3.2] - 2025-05-24
### Fixed
- Fixed mixin incompatibility with ModernFix (closes [#42](https://github.com/Suiranoil/SkinRestorer/issues/52))
## [2.3.1] - 2025-05-03
### Added
- Added support for minecraft 1.19-1.19.4

View File

@@ -1,4 +1,2 @@
### Added
- Added support for minecraft 1.19-1.19.4
### Changed
- Use services and session server urls from environment
### Fixed
- Fixed mixin incompatibility with ModernFix (closes [#42](https://github.com/Suiranoil/SkinRestorer/issues/52))

View File

@@ -128,7 +128,7 @@ public final class SkinCommand {
boolean save,
boolean setByOperator
) {
src.sendSystemMessage(Translation.translatableWithFallback(Translation.COMMAND_SKIN_LOADING_KEY));
src.sendSuccess(Translation.translatableWithFallback(Translation.COMMAND_SKIN_LOADING_KEY), false);
SkinRestorer.setSkinAsync(src.getServer(), targets, context, save).thenAccept(result -> {
if (result.isError()) {

View File

@@ -9,11 +9,25 @@ import org.jetbrains.annotations.Nullable;
import java.util.Objects;
public record SkinValue(@NotNull String provider, @Nullable String argument, @Nullable SkinVariant variant,
@Nullable Property value, @Nullable Property originalValue) implements GsonPostProcessable {
public final class SkinValue implements GsonPostProcessable {
public static final SkinValue EMPTY = new SkinValue(EmptySkinProvider.PROVIDER_NAME, null, null, null);
private @NotNull String provider;
private @Nullable String argument;
private @Nullable SkinVariant variant;
private @Nullable Property value;
private @Nullable Property originalValue;
public SkinValue(@NotNull String provider, @Nullable String argument, @Nullable SkinVariant variant,
@Nullable Property value, @Nullable Property originalValue) {
this.provider = provider;
this.argument = argument;
this.variant = variant;
this.value = value;
this.originalValue = originalValue;
}
public SkinValue(String provider, String argument, SkinVariant variant, Property value) {
this(provider, argument, variant, value, null);
}
@@ -38,4 +52,23 @@ public record SkinValue(@NotNull String provider, @Nullable String argument, @Nu
public void gsonPostProcess() {
Objects.requireNonNull(this.provider);
}
public @NotNull String provider() {
return provider;
}
public @Nullable String argument() {
return argument;
}
public @Nullable SkinVariant variant() {
return variant;}
public @Nullable Property value() {
return value;
}
public @Nullable Property originalValue() {
return originalValue;
}
}

View File

@@ -39,11 +39,11 @@ public final class Translation {
}
public static MutableComponent translatableWithFallback(String key) {
return Component.translatableWithFallback(key, Translation.get(key));
return Component.translatable(Translation.get(key));
}
public static MutableComponent translatableWithFallback(String key, Object... args) {
return Component.translatableWithFallback(key, Translation.get(key), args);
return Component.translatable(Translation.get(key), args);
}
public static void reloadTranslations() {

View File

@@ -44,12 +44,8 @@ public final class PlayerUtils {
PlayerList playerList = serverLevel.getServer().getPlayerList();
ChunkMap chunkMap = serverLevel.getChunkSource().chunkMap;
playerList.broadcastAll(new ClientboundBundlePacket(
List.of(
new ClientboundPlayerInfoRemovePacket(List.of(player.getUUID())),
ClientboundPlayerInfoUpdatePacket.createPlayerInitializing(Collections.singleton(player))
)
));
playerList.broadcastAll(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.REMOVE_PLAYER, player));
playerList.broadcastAll(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.ADD_PLAYER, player));
var trackedEntity = (TrackedEntityAccessorInvoker) ((ChunkMapAccessor) chunkMap).getEntityMap().get(player.getId());
if (trackedEntity != null) {
@@ -77,7 +73,7 @@ public final class PlayerUtils {
player.gameMode.getPreviousGameModeForPlayer(),
player.getLevel().isDebug(),
player.getLevel().isFlat(),
(byte) 3,
true,
player.getLastDeathLocation()
)
);

View File

@@ -2,7 +2,8 @@
"required": true,
"minVersion": "0.8",
"package": "net.lionarius.skinrestorer.mixin",
"compatibilityLevel": "JAVA_8",
"compatibilityLevel": "JAVA_17",
"priority": 1100,
"refmap": "${mod_id}.refmap.json",
"mixins": [
"ChunkMapAccessor",

View File

@@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "net.lionarius.skinrestorer.fabric.mixin",
"compatibilityLevel": "JAVA_8",
"compatibilityLevel": "JAVA_17",
"refmap": "${mod_id}.refmap.json",
"mixins": [
"CommandsMixin",

View File

@@ -1,5 +1,5 @@
# Forge, see https://files.minecraftforge.net/net/minecraftforge/forge/ for new versions
forge_version=45.0.0
forge_loader_version_range=[45,)
forge_version=41.0.1
forge_loader_version_range=[41,)
# Forge sometimes skips minor minecraft versions (like 1.20.5)
forge_minecraft_version=1.19.4
forge_minecraft_version=1.19

View File

@@ -3,12 +3,12 @@ group=net.lionarius
java_version=17
# Common
minecraft_version=1.19.4
minecraft_version_list=1.19.4
minecraft_version_range=[1.19.4,1.20)
minecraft_version=1.19
minecraft_version_list=1.19
minecraft_version_range=[1.19,1.19.1)
mod_id=skinrestorer
mod_name=SkinRestorer
mod_version=2.3.1
mod_version=2.3.2
mod_author=Lionarius
mod_homepage=https://modrinth.com/mod/skinrestorer
mod_sources=https://github.com/Suiranoil/SkinRestorer
@@ -21,8 +21,8 @@ description=A server-side mod for managing skins.
mineskin_client_version=3.0.1-SNAPSHOT
# ParchmentMC mappings, see https://parchmentmc.org/docs/getting-started#choose-a-version for new versions
parchment_minecraft=1.19.4
parchment_version=2023.06.26
parchment_minecraft=1.19.2
parchment_version=2022.11.27
# Publishing
curseforge_id=443823