-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
38 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 5 additions & 14 deletions
19
...mo_lego/fabrictailor/mixin/client/MYggDrasilMinecraftSessionService_AllSkinsAcceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
package org.samo_lego.fabrictailor.mixin.client; | ||
|
||
import com.mojang.authlib.SignatureState; | ||
import com.mojang.authlib.properties.Property; | ||
import com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.ModifyVariable; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
@Mixin(value = YggdrasilMinecraftSessionService.class, remap = false) | ||
public class MYggDrasilMinecraftSessionService_AllSkinsAcceptor { | ||
|
||
@Inject(method = "getSecurePropertyValue", at = @At("HEAD"), cancellable = true) | ||
private void ft_enableInsecureValue(Property property, CallbackInfoReturnable<String> cir) { | ||
cir.setReturnValue(property.value()); | ||
} | ||
|
||
/** | ||
* Disables "requireSecure" boolean in order to allow skins from all | ||
* domains, specified in config. | ||
* | ||
* @param requireSecure whether to require secure connection, ignored | ||
* @return false | ||
* Enable unsigned skin textures. | ||
*/ | ||
@ModifyVariable(method = "getTextures", at = @At("HEAD"), argsOnly = true) | ||
private boolean ft_disableSecureTextures(boolean requireSecure) { | ||
return false; | ||
@Inject(method = "getPropertySignatureState", at = @At("HEAD"), cancellable = true) | ||
private void ft_acceptAllSignatures(Property property, CallbackInfoReturnable<SignatureState> cir) { | ||
cir.setReturnValue(SignatureState.SIGNED); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
accessWidener v2 named | ||
|
||
accessible field net/minecraft/client/gui/screens/advancements/AdvancementsScreen WINDOW_LOCATION Lnet/minecraft/resources/ResourceLocation; | ||
accessible field net/minecraft/client/resources/SkinManager PROPERTY_TEXTURES Ljava/lang/String; | ||
accessible class net/minecraft/client/gui/screens/advancements/AdvancementTabType |