mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 06:28:48 +00:00
Adjust Iris mixins to be remap false and require 0
This commit is contained in:
1 parent
f6007c13eb
commit
19dcf4ae13
1 file changed
+2
-2
@@ -26,14 +26,14 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|||||||
@Mixin(HandRenderer.class)
|
@Mixin(HandRenderer.class)
|
||||||
public class MixinIrisHandRenderer {
|
public class MixinIrisHandRenderer {
|
||||||
|
|
||||||
@Inject(method = "isHandTranslucent", remap = false, at = @At("HEAD"), cancellable = true)
|
@Inject(method = "isHandTranslucent", remap = false, at = @At("HEAD"), cancellable = true, require = 0)
|
||||||
public void isHandTransluent(InteractionHand hand, CallbackInfoReturnable<Boolean> cir) {
|
public void isHandTransluent(InteractionHand hand, CallbackInfoReturnable<Boolean> cir) {
|
||||||
if (Flashback.getSpectatingPlayer() != null) {
|
if (Flashback.getSpectatingPlayer() != null) {
|
||||||
cir.setReturnValue(false);
|
cir.setReturnValue(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@WrapOperation(method = "canRender", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/multiplayer/MultiPlayerGameMode;getPlayerMode()Lnet/minecraft/world/level/GameType;"))
|
@WrapOperation(method = "canRender", remap = false, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/multiplayer/MultiPlayerGameMode;getPlayerMode()Lnet/minecraft/world/level/GameType;"), require = 0)
|
||||||
public GameType getPlayerMode(MultiPlayerGameMode instance, Operation<GameType> original) {
|
public GameType getPlayerMode(MultiPlayerGameMode instance, Operation<GameType> original) {
|
||||||
if (Flashback.getSpectatingPlayer() != null) {
|
if (Flashback.getSpectatingPlayer() != null) {
|
||||||
return GameType.SURVIVAL;
|
return GameType.SURVIVAL;
|
||||||
|
|||||||
Reference in new issue
Block a user