Puzzle 1.2.0 - 1.18

Fix #18
Fix #17
Fix #13
Russian translations by @Felix14-v2
German translations by @2020Sanoj
This commit is contained in:
Motschen
2022-03-13 22:00:43 +01:00
parent 1ffe62f3af
commit fa52471ade
15 changed files with 66 additions and 176 deletions

View File

@@ -27,13 +27,14 @@ public abstract class MixinTitleScreen extends Screen {
@Shadow private long backgroundFadeStart;
private Text puzzleText;
private int puzzleTextWidth;
private int yOffset = 20;
private int yOffset;
protected MixinTitleScreen(Text title) {
super(title);
}
@Inject(at = @At("TAIL"), method = "init")
private void puzzle$init(CallbackInfo ci) {
yOffset = 20;
if (FabricLoader.getInstance().isModLoaded("dashloader")) yOffset = yOffset + 10;
if (UpdateChecker.isUpToDate) {
puzzleText = Text.of(PuzzleCore.version);