diff --git a/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomeListScreen.java b/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomeListScreen.java index 6c10f016a..256976a69 100644 --- a/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomeListScreen.java +++ b/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomeListScreen.java @@ -12,7 +12,6 @@ import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; import net.minecraft.resources.ResourceKey; -import net.minecraft.resources.ResourceLocation; import net.minecraft.util.FastColor; import net.minecraft.world.level.biome.Biome; import org.apache.commons.lang3.mutable.Mutable; @@ -128,7 +127,7 @@ protected void init() { this.searchButton = new ImageButton( this.leftPos + 15, (this.bottomPos + this.IMAGE_HEIGHT) - 5, 20, 18, 0, 220, 18, - new ResourceLocation("byg", "textures/gui/biomepedia.png"), + BYG.createLocation("textures/gui/biomepedia.png"), 256, 256, (button) -> { this.search.visible = !this.search.visible; diff --git a/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java b/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java index 888527bbe..f8ebf0799 100644 --- a/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java +++ b/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java @@ -28,7 +28,7 @@ public class BiomepediaHomeScreen extends AbstractBiomepediaScreen { public static final String TRANSLATIONS_URL = "https://crowdin.com/project/oh-the-biomes-youll-go"; public static final ResourceLocation BIOMEPEDIA_LOCATION = BYG.createLocation("textures/gui/biomepedia_book_gui.png"); public static final String DOWNLOAD_URL = ModPlatform.INSTANCE.curseForgeURL(); - public static final ResourceLocation BOOK_TEXTURES = new ResourceLocation("byg", "textures/gui/biomepedia.png"); + public static final ResourceLocation BOOK_TEXTURES = BYG.createLocation("textures/gui/biomepedia.png"); int toolTipMaxWidth; int textStartHeight; diff --git a/Fabric/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java b/Fabric/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java index 46ade8309..633f1e4c4 100644 --- a/Fabric/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java +++ b/Fabric/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java @@ -6,13 +6,13 @@ import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen; import net.minecraft.client.gui.screens.inventory.InventoryScreen; import net.minecraft.network.chat.Component; -import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.inventory.AbstractContainerMenu; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import potionstudios.byg.BYG; import potionstudios.byg.BYGConstants; import potionstudios.byg.client.BiomepediaInventoryConfig; import potionstudios.byg.client.gui.biomepedia.screen.BiomepediaHomeScreen; @@ -36,7 +36,7 @@ protected void init(CallbackInfo ci) { 20, 18, 0, 220, 18, - new ResourceLocation("byg", "textures/gui/biomepedia.png"), + BYG.createLocation("textures/gui/biomepedia.png"), 256, 256, (button) -> Minecraft.getInstance().setScreen(new BiomepediaHomeScreen(Component.literal(""))), Component.literal("Lorem Ipsum") diff --git a/Forge/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java b/Forge/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java index 393d9e64a..f078a69b4 100644 --- a/Forge/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java +++ b/Forge/src/main/java/potionstudios/byg/mixin/client/MixinInventoryScreen.java @@ -6,13 +6,13 @@ import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen; import net.minecraft.client.gui.screens.inventory.InventoryScreen; import net.minecraft.network.chat.Component; -import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.inventory.AbstractContainerMenu; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import potionstudios.byg.BYG; import potionstudios.byg.BYGConstants; import potionstudios.byg.client.BiomepediaInventoryConfig; import potionstudios.byg.client.gui.biomepedia.screen.BiomepediaHomeScreen; @@ -36,7 +36,7 @@ protected void init(CallbackInfo ci) { 20, 18, 0, 220, 18, - new ResourceLocation("byg", "textures/gui/biomepedia.png"), + BYG.createLocation("textures/gui/biomepedia.png"), 256, 256, (button) -> Minecraft.getInstance().setScreen(new BiomepediaHomeScreen(Component.literal(""))), Component.literal("Lorem Ipsum")