mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Adjust Iris mixins to be remap false and require 0
This commit is contained in:
1 parent
b0e4569050
commit
7ee437421b
1 file changed
+2
-2
@@ -26,14 +26,14 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
@Mixin(HandRenderer.class)
|
||||
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) {
|
||||
if (Flashback.getSpectatingPlayer() != null) {
|
||||
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) {
|
||||
if (Flashback.getSpectatingPlayer() != null) {
|
||||
return GameType.SURVIVAL;
|
||||
|
||||
Reference in new issue
Block a user