Skip to content

Commit dd1b17a

Browse files
authored
Merge branch 'master' into vbo-wsr
2 parents 167b1e7 + 8bc2ba5 commit dd1b17a

File tree

4 files changed

+155
-90
lines changed

4 files changed

+155
-90
lines changed

src/main/java/gregtech/client/renderer/handler/MultiblockPreviewRenderer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ public static void renderControllerInList(MultiblockControllerBase controllerBas
123123
controllerPos = new BlockPos(x, y, z);
124124
previewFacing = metaTE.getFrontFacing();
125125
mte = (MultiblockControllerBase) metaTE;
126-
break;
127126
}
128127
}
129128
}

src/main/java/gregtech/integration/jei/JustEnoughItemsModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ private void registerRecipeMapCatalyst(IModRegistry registry, RecipeMap<?> recip
363363
}
364364
if (recipeMap.getSmallRecipeMap() != null) {
365365
registry.addRecipeCatalyst(metaTileEntity.getStackForm(),
366-
GTValues.MODID + ":" + recipeMap.getSmallRecipeMap().unlocalizedName);
366+
GTValues.MODID + "." + recipeMap.getSmallRecipeMap().unlocalizedName);
367367
return;
368368
}
369369

src/main/java/gregtech/mixins/mui2/LangKeyMixin.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,22 @@
33
import com.cleanroommc.modularui.drawable.text.BaseKey;
44
import com.cleanroommc.modularui.drawable.text.LangKey;
55
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
6+
import org.jetbrains.annotations.NotNull;
67
import org.spongepowered.asm.mixin.Mixin;
8+
import org.spongepowered.asm.mixin.Shadow;
79
import org.spongepowered.asm.mixin.injection.At;
10+
import org.spongepowered.asm.mixin.injection.Inject;
11+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
12+
13+
import java.util.function.Supplier;
814

915
// all this mixin does is switch newlines to the expected format
1016
@Mixin(value = LangKey.class, remap = false)
1117
public abstract class LangKeyMixin extends BaseKey {
1218

19+
@Shadow
20+
private long time;
21+
1322
@ModifyExpressionValue(method = "getFormatted",
1423
at = @At(value = "INVOKE",
1524
target = "Lcom/cleanroommc/modularui/drawable/text/FontRenderHelper;formatArgs([Ljava/lang/Object;Lcom/cleanroommc/modularui/drawable/text/FormattingState;Ljava/lang/String;Z)Ljava/lang/String;"))
@@ -25,4 +34,11 @@ public String getTranslateKey(String original) {
2534
public String switchNewLines(String original) {
2635
return original.replace("/n", "\n");
2736
}
37+
38+
@Inject(method = "<init>(Ljava/util/function/Supplier;Ljava/util/function/Supplier;)V",
39+
at = @At(value = "RETURN"))
40+
private void setTimeToNegativeOne(@NotNull Supplier<String> keySupplier, @NotNull Supplier<Object[]> argsSupplier,
41+
CallbackInfo ci) {
42+
time = -1;
43+
}
2844
}

0 commit comments

Comments
 (0)