vanilla-fixes

Minecraft: Better than Adventure! mod that fixes some issues
git clone git://memoryshards.xyz/vanilla-fixes.git
Log | Files | Refs | README | LICENSE

commit 52986494e212bd44ccce16c8190eda5993b28412
parent 7a6c6a9ea9d6961ba64a8f05c9bb6ef46f863ff8
Author: Amb0s <ambos@disroot.org>
Date:   Fri, 11 Aug 2023 10:49:32 +0200

Fixed string comparison and reformatted annotation

Diffstat:
Msrc/main/java/turniplabs/vanillafixes/mixin/GuiMainMenuMixin.java | 4++--
Msrc/main/java/turniplabs/vanillafixes/mixin/SoundManagerMixin.java | 6+++---
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/turniplabs/vanillafixes/mixin/GuiMainMenuMixin.java b/src/main/java/turniplabs/vanillafixes/mixin/GuiMainMenuMixin.java @@ -24,8 +24,8 @@ final class GuiMainMenuMixin extends GuiScreen { } @ModifyArgs(method = "drawScreen", at = @At(value = "INVOKE", - target = "Lnet/minecraft/client/render/FontRenderer;drawCenteredString(Ljava/lang/String;III)V", ordinal = 0), - require = 0) + target = "Lnet/minecraft/client/render/FontRenderer;drawCenteredString(Ljava/lang/String;III)V", + ordinal = 0), require = 0) private void removeDownloadingResourcesString(Args args) { args.set(0, ""); } diff --git a/src/main/java/turniplabs/vanillafixes/mixin/SoundManagerMixin.java b/src/main/java/turniplabs/vanillafixes/mixin/SoundManagerMixin.java @@ -26,11 +26,11 @@ final class SoundManagerMixin { // (MultiMC users should be happy) Minecraft mc = Minecraft.getMinecraft(Minecraft.class); - if (args.get(0) == "minecraft-bta/resources/mod/sound") { + if (args.get(0).equals("minecraft-bta/resources/mod/sound")) { args.set(0, mc.getMinecraftDir() + "/resources/mod/sound"); - } else if (args.get(0) == "minecraft-bta/resources/mod/streaming") { + } else if (args.get(0).equals("minecraft-bta/resources/mod/streaming")) { args.set(0, mc.getMinecraftDir() + "/resources/mod/streaming"); - } else if (args.get(0) == "minecraft-bta/resources/mod/music") { + } else if (args.get(0).equals("minecraft-bta/resources/mod/music")) { args.set(0, mc.getMinecraftDir() + "/resources/mod/music"); } else { args.set(0, mc.getMinecraftDir() + "/resources/mod/cavemusic");