Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fix TileEntitySignRenderer crashing out of dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mist475 committed Oct 9, 2023
1 parent 6bda43f commit 83b93b6
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyVariable;
import org.spongepowered.asm.mixin.injection.ModifyArg;

import com.prupe.mcpatcher.cc.ColorizeWorld;

@Mixin(TileEntitySignRenderer.class)
public abstract class MixinTileEntitySignRenderer {

@ModifyVariable(
@ModifyArg(
method = "renderTileEntityAt(Lnet/minecraft/tileentity/TileEntitySign;DDDF)V",
at = @At("STORE"),
ordinal = 0)
private byte modifyRenderTileEntityAt(byte value) {
return (byte) ColorizeWorld.colorizeSignText();
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/FontRenderer;drawString(Ljava/lang/String;III)I"),
index = 3)
private int modifyRenderTileEntityAt(int color) {
return ColorizeWorld.colorizeSignText();
}
}

0 comments on commit 83b93b6

Please sign in to comment.