Revert "[Change] Build against FAPI 0.86"
This reverts commit 3ede6a4ce0
.
This commit is contained in:
parent
3ede6a4ce0
commit
2370d79006
3 changed files with 12 additions and 17 deletions
|
@ -100,9 +100,7 @@ dependencies {
|
|||
modCompileOnly "dev.emi:trinkets:${project.trinkets_version}"
|
||||
|
||||
modCompileOnly "dev.emi:emi-fabric:${emi_version}:api"
|
||||
// modLocalRuntime("dev.emi:emi-fabric:${emi_version}") {
|
||||
// transitive = false
|
||||
// }
|
||||
modLocalRuntime "dev.emi:emi-fabric:${emi_version}"
|
||||
|
||||
if (local_wunderlib) {
|
||||
println "Using local WunderLib"
|
||||
|
|
|
@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx2G
|
|||
# check these on https://fabricmc.net/versions.html
|
||||
minecraft_version=1.20.1
|
||||
loader_version=0.14.21
|
||||
fabric_version=0.86.0+1.20.1
|
||||
fabric_version=0.85.0+1.20.1
|
||||
#Loom
|
||||
loom_version=1.0-SNAPSHOT
|
||||
#Modrinth
|
||||
|
@ -21,6 +21,6 @@ archives_base_name=better-end
|
|||
patchouli_version=1.19-73-FABRIC
|
||||
bclib_version=3.0.12
|
||||
rei_version=12.0.622
|
||||
emi_version=1.0.12+1.20.1
|
||||
emi_version=1.0.3+1.20
|
||||
trinkets_version=3.7.0
|
||||
cca_version=5.2.1
|
||||
|
|
|
@ -16,7 +16,7 @@ import net.minecraft.resources.ResourceLocation;
|
|||
import net.minecraft.world.level.Level;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin;
|
||||
import net.fabricmc.fabric.api.client.model.ModelLoadingRegistry;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.DimensionRenderingRegistry;
|
||||
|
||||
public class BetterEndClient implements ClientModInitializer {
|
||||
|
@ -35,18 +35,15 @@ public class BetterEndClient implements ClientModInitializer {
|
|||
ResourceLocation checkPlantId = new ResourceLocation("item/chorus_plant");
|
||||
ResourceLocation toLoadFlowerId = new ResourceLocation("betterend", "item/custom_chorus_flower");
|
||||
ResourceLocation toLoadPlantId = new ResourceLocation("betterend", "item/custom_chorus_plant");
|
||||
|
||||
ModelLoadingPlugin.register(pluginContext -> {
|
||||
pluginContext.resolveModel().register((context) -> {
|
||||
if (GeneratorOptions.changeChorusPlant()) {
|
||||
if (context.id().equals(checkFlowerId)) {
|
||||
return context.getOrLoadModel(toLoadFlowerId);
|
||||
} else if (context.id().equals(checkPlantId)) {
|
||||
return context.getOrLoadModel(toLoadPlantId);
|
||||
}
|
||||
ModelLoadingRegistry.INSTANCE.registerResourceProvider(manager -> (resourceId, context) -> {
|
||||
if (GeneratorOptions.changeChorusPlant()) {
|
||||
if (resourceId.equals(checkFlowerId)) {
|
||||
return context.loadModel(toLoadFlowerId);
|
||||
} else if (resourceId.equals(checkPlantId)) {
|
||||
return context.loadModel(toLoadPlantId);
|
||||
}
|
||||
return null;
|
||||
});
|
||||
}
|
||||
return null;
|
||||
});
|
||||
|
||||
if (ClientOptions.isCustomSky()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue