From e81af930432f85ce78d6afa908761be56a799a1e Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sat, 22 Jun 2024 13:23:03 +0100 Subject: [PATCH] Move JEI to client folder I hadn't realised this, but plugins are only loaded on the client. This is useful on 1.21, as we now have easy access to a holder lookup. --- .../computercraft/client}/integration/jei/JEIComputerCraft.java | 2 +- .../computercraft/client}/integration/jei/RecipeResolver.java | 2 +- projects/fabric/src/main/resources/fabric.mod.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename projects/common/src/{main/java/dan200/computercraft/shared => client/java/dan200/computercraft/client}/integration/jei/JEIComputerCraft.java (98%) rename projects/common/src/{main/java/dan200/computercraft/shared => client/java/dan200/computercraft/client}/integration/jei/RecipeResolver.java (97%) diff --git a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/JEIComputerCraft.java b/projects/common/src/client/java/dan200/computercraft/client/integration/jei/JEIComputerCraft.java similarity index 98% rename from projects/common/src/main/java/dan200/computercraft/shared/integration/jei/JEIComputerCraft.java rename to projects/common/src/client/java/dan200/computercraft/client/integration/jei/JEIComputerCraft.java index 6893b7d1a..bea670d24 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/JEIComputerCraft.java +++ b/projects/common/src/client/java/dan200/computercraft/client/integration/jei/JEIComputerCraft.java @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: MPL-2.0 -package dan200.computercraft.shared.integration.jei; +package dan200.computercraft.client.integration.jei; import dan200.computercraft.api.ComputerCraftAPI; import dan200.computercraft.api.turtle.TurtleSide; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/RecipeResolver.java b/projects/common/src/client/java/dan200/computercraft/client/integration/jei/RecipeResolver.java similarity index 97% rename from projects/common/src/main/java/dan200/computercraft/shared/integration/jei/RecipeResolver.java rename to projects/common/src/client/java/dan200/computercraft/client/integration/jei/RecipeResolver.java index afccd5a5e..19a591ac5 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/RecipeResolver.java +++ b/projects/common/src/client/java/dan200/computercraft/client/integration/jei/RecipeResolver.java @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: MPL-2.0 -package dan200.computercraft.shared.integration.jei; +package dan200.computercraft.client.integration.jei; import dan200.computercraft.shared.integration.UpgradeRecipeGenerator; import dan200.computercraft.shared.pocket.items.PocketComputerItem; diff --git a/projects/fabric/src/main/resources/fabric.mod.json b/projects/fabric/src/main/resources/fabric.mod.json index 578385401..89ab2882d 100644 --- a/projects/fabric/src/main/resources/fabric.mod.json +++ b/projects/fabric/src/main/resources/fabric.mod.json @@ -27,7 +27,7 @@ "dan200.computercraft.data.FabricDataGenerators" ], "jei_mod_plugin": [ - "dan200.computercraft.shared.integration.jei.JEIComputerCraft" + "dan200.computercraft.client.integration.jei.JEIComputerCraft" ], "rei_client": [ "dan200.computercraft.client.integration.rei.REIComputerCraft"