Skip to content

Commit 2eafcf9

Browse files
authored
Merge pull request #13 from RappyLabyAddons/development
Release v1.0.4
2 parents 604075a + 637c583 commit 2eafcf9

File tree

22 files changed

+181
-48
lines changed

22 files changed

+181
-48
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Set up JDK 21
16-
uses: actions/setup-java@v3
16+
uses: actions/setup-java@v4
1717
with:
1818
distribution: 'corretto'
1919
java-version: '21'
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build with Gradle
2323
run: ./gradlew build --full-stacktrace
2424
- name: Upload Artifact
25-
uses: actions/upload-artifact@v3
25+
uses: actions/upload-artifact@v4
2626
with:
2727
name: Artifacts
2828
path: build/libs/*-release.jar

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ plugins {
66
val versions = providers.gradleProperty("net.labymod.minecraft-versions").get().split(";")
77

88
group = "com.rappytv.signsearch"
9-
version = providers.environmentVariable("VERSION").getOrElse("1.0.3")
9+
version = providers.environmentVariable("VERSION").getOrElse("1.0.4")
1010

1111
labyMod {
12-
defaultPackageName = "com.rappytv.signsearch" //change this to your main package name (used by all modules)
12+
defaultPackageName = "com.rappytv.signsearch"
1313

1414
minecraft {
1515
registerVersion(versions.toTypedArray()) {
@@ -26,7 +26,7 @@ labyMod {
2626
displayName = "SignSearch"
2727
author = "RappyTV"
2828
description = "Highlight signs which contain a specific text."
29-
minecraftVersion = "1.8<1.21.1"
29+
minecraftVersion = "1.8<1.21.4"
3030
version = rootProject.version.toString()
3131
}
3232
}

core/src/main/java/com/rappytv/signsearch/SignSearchAddon.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.rappytv.signsearch;
22

33
import com.rappytv.signsearch.gui.settings.SignSearchSettingsActivity;
4+
import com.rappytv.signsearch.listeners.KeyPressListener;
45
import com.rappytv.signsearch.listeners.PauseMenuListener;
56
import com.rappytv.signsearch.utils.SignManager;
67
import com.rappytv.signsearch.utils.SignSearchSettings;
@@ -13,15 +14,17 @@ public class SignSearchAddon extends LabyAddon<SignSearchConfiguration> {
1314
private static SignSearchConfiguration config;
1415
private static SignManager signManager;
1516
private static SignSearchSettings searchSettings;
17+
private SignSearchSettingsActivity settingsActivity;
1618

1719
@Override
1820
protected void enable() {
1921
registerSettingCategory();
2022
config = configuration();
2123
signManager = new SignManager();
2224
searchSettings = new SignSearchSettings(config.enabled());
23-
SignSearchSettingsActivity activity = new SignSearchSettingsActivity(searchSettings);
24-
registerListener(new PauseMenuListener(activity));
25+
settingsActivity = new SignSearchSettingsActivity(searchSettings);
26+
registerListener(new KeyPressListener(this));
27+
registerListener(new PauseMenuListener(settingsActivity));
2528
}
2629

2730
@Override
@@ -40,4 +43,8 @@ public static SignManager getSignManager() {
4043
public static SignSearchSettings getSearchSettings() {
4144
return searchSettings;
4245
}
46+
47+
public SignSearchSettingsActivity getSettingsActivity() {
48+
return settingsActivity;
49+
}
4350
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
package com.rappytv.signsearch;
22

33
import net.labymod.api.addon.AddonConfig;
4+
import net.labymod.api.client.gui.screen.key.Key;
5+
import net.labymod.api.client.gui.screen.widget.widgets.input.KeybindWidget.KeyBindSetting;
6+
import net.labymod.api.client.gui.screen.widget.widgets.input.SwitchWidget.SwitchSetting;
47
import net.labymod.api.configuration.loader.property.ConfigProperty;
58

69
public class SignSearchConfiguration extends AddonConfig {
710

11+
@SwitchSetting
812
private final ConfigProperty<Boolean> enabled = new ConfigProperty<>(true);
913

14+
@KeyBindSetting
15+
private final ConfigProperty<Key> menuHotkey = new ConfigProperty<>(Key.NONE);
16+
1017
@Override
1118
public ConfigProperty<Boolean> enabled() {
1219
return enabled;
1320
}
21+
22+
public ConfigProperty<Key> menuHotkey() {
23+
return menuHotkey;
24+
}
1425
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.rappytv.signsearch.listeners;
2+
3+
import com.rappytv.signsearch.SignSearchAddon;
4+
import net.labymod.api.Laby;
5+
import net.labymod.api.event.Subscribe;
6+
import net.labymod.api.event.client.input.KeyEvent;
7+
import net.labymod.api.event.client.input.KeyEvent.State;
8+
9+
public class KeyPressListener {
10+
11+
private final SignSearchAddon addon;
12+
13+
public KeyPressListener(SignSearchAddon addon) {
14+
this.addon = addon;
15+
}
16+
17+
@Subscribe
18+
public void onKeyDown(KeyEvent event) {
19+
if(event.state() != State.PRESS
20+
|| Laby.labyAPI().minecraft().minecraftWindow().isScreenOpened()
21+
|| event.key() != addon.configuration().menuHotkey().get()) return;
22+
23+
Laby.labyAPI().minecraft().minecraftWindow().displayScreen(addon.getSettingsActivity());
24+
}
25+
26+
}

core/src/main/resources/assets/signsearch/i18n/en_us.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"settings": {
44
"enabled": {
55
"name": "Enabled"
6+
},
7+
"menuHotkey": {
8+
"name": "Settings hotkey"
69
}
710
},
811
"ui": {

game-runner/src/v1_16_5/java/com/rappytv/signsearch/v1_16_5/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer consumer, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, consumer, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

game-runner/src/v1_17_1/java/com/rappytv/signsearch/v1_17_1/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer consumer, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, consumer, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

game-runner/src/v1_18_2/java/com/rappytv/signsearch/v1_18_2/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer consumer, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, consumer, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

game-runner/src/v1_19_2/java/com/rappytv/signsearch/v1_19_2/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer consumer, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, consumer, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

game-runner/src/v1_19_3/java/com/rappytv/signsearch/v1_19_3/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"renderSignModel"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer bufferIn, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, bufferIn, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

game-runner/src/v1_19_4/java/com/rappytv/signsearch/v1_19_4/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"renderSignModel"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer bufferIn, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, bufferIn, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

game-runner/src/v1_20_1/java/com/rappytv/signsearch/v1_20_1/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"renderSignModel"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer bufferIn, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, bufferIn, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

game-runner/src/v1_20_2/java/com/rappytv/signsearch/v1_20_2/mixins/SignMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
public abstract class SignMixin {
2020

2121
@Inject(method = "render(Lnet/minecraft/world/level/block/entity/SignBlockEntity;FLcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;II)V", at = @At("HEAD"))
22-
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack matrixStack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
22+
private void injectSignManager(SignBlockEntity signEntity, float partialTicket, PoseStack stack, MultiBufferSource buffer, int combinedLight, int combiedOverlay, CallbackInfo ci) {
2323
SignSearchAddon.getSignManager().onRender((net.labymod.api.client.blockentity.SignBlockEntity) signEntity, (BlockPosition) signEntity.getBlockPos());
2424
}
2525

2626
@Redirect(method={"renderSignModel"}, at=@At(value="INVOKE", target="Lnet/minecraft/client/model/geom/ModelPart;render(Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;II)V"))
27-
private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn) {
27+
private void redirectSignColor(ModelPart modelPart, PoseStack stack, VertexConsumer bufferIn, int combinedLight, int combinedOverlay) {
2828
float red = 1.0f;
2929
float green = 1.0f;
3030
float blue = 1.0f;
@@ -37,6 +37,6 @@ private void redirectSignColor(ModelPart modelRenderer, PoseStack matrixStackIn,
3737
blue = signColor.getBlue();
3838
alpha = signColor.getAlpha();
3939
}
40-
modelRenderer.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
40+
modelPart.render(stack, bufferIn, combinedLight, combinedOverlay, red, green, blue, alpha);
4141
}
4242
}

0 commit comments

Comments
 (0)