Skip to content

Commit 22b1ff7

Browse files
fix all RL references
1 parent 0efd367 commit 22b1ff7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

neoforge-main/src/main/java/dev/compactmods/crafting/compat/jei/JeiMiniaturizationCraftingCategory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
public class JeiMiniaturizationCraftingCategory implements IRecipeCategory<MiniaturizationRecipe> {
6363

64-
public static final ResourceLocation UID = ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "miniaturization");
64+
public static final ResourceLocation UID = CompactCrafting.modRL("miniaturization");
6565
public static final RecipeType<MiniaturizationRecipe> RECIPE_TYPE = new RecipeType<>(UID, MiniaturizationRecipe.class);
6666

6767
private final IDrawable icon;
@@ -108,7 +108,7 @@ public JeiMiniaturizationCraftingCategory(IGuiHelper guiHelper) {
108108
this.background = guiHelper.createBlankDrawable(width, height);
109109
this.slotDrawable = guiHelper.getSlotDrawable();
110110
this.icon = guiHelper.createDrawableIngredient(VanillaTypes.ITEM_STACK, new ItemStack(CCBlocks.FIELD_PROJECTOR_BLOCK.get()));
111-
this.arrowOutputs = guiHelper.createDrawable(ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-arrow-outputs.png"), 0, 0, 24, 19);
111+
this.arrowOutputs = guiHelper.createDrawable(CompactCrafting.modRL("textures/gui/jei-arrow-outputs.png"), 0, 0, 24, 19);
112112

113113
this.blocks = Minecraft.getInstance().getBlockRenderer();
114114
this.previewLevel = null;
@@ -315,12 +315,12 @@ public void draw(MiniaturizationRecipe recipe, IRecipeSlotsView slots, GuiGraphi
315315
Window mainWindow = Minecraft.getInstance().getWindow();
316316

317317
drawScaledTexture(guiGraphics,
318-
ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-arrow-field.png"),
318+
CompactCrafting.modRL("textures/gui/jei-arrow-field.png"),
319319
new ScreenArea(7, 20, 17, 22),
320320
0, 0, 17, 22, 17, 22);
321321

322322
drawScaledTexture(guiGraphics,
323-
ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-arrow-outputs.png"),
323+
CompactCrafting.modRL("textures/gui/jei-arrow-outputs.png"),
324324
new ScreenArea(100, 25, 24, 19),
325325
0, 0, 24, 19, 24, 19);
326326

@@ -433,7 +433,7 @@ private void renderPreviewControls(GuiGraphics guiGraphics, AABB dims) {
433433
mx.pushPose();
434434
mx.translate(0, 0, 10);
435435

436-
ResourceLocation sprites = ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-sprites.png");
436+
ResourceLocation sprites = CompactCrafting.modRL("textures/gui/jei-sprites.png");
437437

438438
if (exploded) {
439439
drawScaledTexture(guiGraphics, sprites, explodeToggle, 20, 0, 20, 20, 120, 20);

neoforge-main/src/main/java/dev/compactmods/crafting/compat/jei/JeiMiniaturizationPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
public class JeiMiniaturizationPlugin implements IModPlugin {
2020
@Override
2121
public ResourceLocation getPluginUid() {
22-
return ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "miniaturization_crafting");
22+
return CompactCrafting.modRL("miniaturization_crafting");
2323
}
2424

2525
@Override

neoforge-main/src/main/java/dev/compactmods/crafting/compat/theoneprobe/providers/FieldProjectorProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
public class FieldProjectorProvider implements IProbeInfoProvider {
2828

29-
private static final ResourceLocation ID = ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "field_projector");
29+
private static final ResourceLocation ID = CompactCrafting.modRL("field_projector");
3030
@Override
3131
public ResourceLocation getID() {
3232
return ID;
@@ -64,7 +64,7 @@ public void addProbeInfo(ProbeMode mode, IProbeInfo info, Player player, Level l
6464
group.item(new ItemStack(Items.REDSTONE)); // placeholder
6565

6666
group.icon(
67-
ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-arrow-outputs.png"),
67+
CompactCrafting.modRL( "textures/gui/jei-arrow-outputs.png"),
6868
0, 0, 24, 19, info.defaultIconStyle().textureHeight(19)
6969
.textureWidth(24)
7070
.height(19).width(24));

0 commit comments

Comments
 (0)