mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
Merge branch '1.20.2-multiloader' into 1.20-multiloader
This commit is contained in:
@@ -4,6 +4,14 @@ 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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [2.3.0] - 2025-03-27
|
||||||
|
### Added
|
||||||
|
- Added `skinApplyDelayOnJoin` config option (see [wiki](https://github.com/Suiranoil/SkinRestorer/wiki/Configuration#skinapplydelayonjoin))
|
||||||
|
### Changed
|
||||||
|
- Updated to 1.21.5
|
||||||
|
### Removed
|
||||||
|
- [NeoForge] Dropped support for NeoForge on Minecraft 1.20.5-1.20.6
|
||||||
|
|
||||||
## [2.2.1] - 2024-12-23
|
## [2.2.1] - 2024-12-23
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed game not closing because of mineskin working threads (closes [#41](https://github.com/Suiranoil/SkinRestorer/issues/41))
|
- Fixed game not closing because of mineskin working threads (closes [#41](https://github.com/Suiranoil/SkinRestorer/issues/41))
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
### Fixed
|
### Added
|
||||||
- Fixed game not closing because of mineskin working threads (closes [#41](https://github.com/Suiranoil/SkinRestorer/issues/41))
|
- Added `skinApplyDelayOnJoin` config option (see [wiki](https://github.com/Suiranoil/SkinRestorer/wiki/Configuration#skinapplydelayonjoin))
|
||||||
|
### Changed
|
||||||
|
- Updated to 1.21.5
|
||||||
|
### Removed
|
||||||
|
- [NeoForge] Dropped support for NeoForge on Minecraft 1.20.5-1.20.6
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ public abstract class PlayerListMixin {
|
|||||||
@Inject(method = "placeNewPlayer", at = @At("HEAD"))
|
@Inject(method = "placeNewPlayer", at = @At("HEAD"))
|
||||||
private void placeNewPlayer(Connection connection, ServerPlayer player, CallbackInfo ci) {
|
private void placeNewPlayer(Connection connection, ServerPlayer player, CallbackInfo ci) {
|
||||||
var delay = SkinRestorer.getConfig().skinApplyDelayOnJoin();
|
var delay = SkinRestorer.getConfig().skinApplyDelayOnJoin();
|
||||||
var uuid = player.getUUID();
|
|
||||||
|
|
||||||
if (delay <= 0) {
|
if (delay <= 0) {
|
||||||
skinrestorer$tryApplySkin(server, player);
|
skinrestorer$tryApplySkin(server, player);
|
||||||
} else {
|
} else {
|
||||||
|
var uuid = player.getUUID();
|
||||||
ServerUtils.scheduleServerTask(server, () -> {
|
ServerUtils.scheduleServerTask(server, () -> {
|
||||||
var actualPlayer = server.getPlayerList().getPlayer(uuid);
|
var actualPlayer = server.getPlayerList().getPlayer(uuid);
|
||||||
if (actualPlayer != null)
|
if (actualPlayer != null)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ minecraft_version_list=1.20,1.20.1
|
|||||||
minecraft_version_range=[1.20, 1.20.1]
|
minecraft_version_range=[1.20, 1.20.1]
|
||||||
mod_id=skinrestorer
|
mod_id=skinrestorer
|
||||||
mod_name=SkinRestorer
|
mod_name=SkinRestorer
|
||||||
mod_version=2.2.1
|
mod_version=2.3.0
|
||||||
mod_author=Lionarius
|
mod_author=Lionarius
|
||||||
mod_homepage=https://modrinth.com/mod/skinrestorer
|
mod_homepage=https://modrinth.com/mod/skinrestorer
|
||||||
mod_sources=https://github.com/Suiranoil/SkinRestorer
|
mod_sources=https://github.com/Suiranoil/SkinRestorer
|
||||||
|
|||||||
Reference in New Issue
Block a user