1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-01 22:22:59 +00:00

Fix model hook nullability

Only an issue on the latest FAPI, so we also bump that.
This commit is contained in:
Jonathan Coates
2023-08-05 10:32:21 +01:00
parent 41b6711b38
commit b6632c9ed9
4 changed files with 4 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ public class ComputerCraftClient {
PreparableModelLoadingPlugin.register(CustomModelLoader::prepare, (state, context) -> {
ClientRegistry.registerExtraModels(context::addModels);
context.resolveModel().register(ctx -> state.loadModel(ctx.id()));
context.modifyModelAfterBake().register((model, ctx) -> state.wrapModel(ctx, model));
context.modifyModelAfterBake().register((model, ctx) -> model == null ? null : state.wrapModel(ctx, model));
});
BlockRenderLayerMap.INSTANCE.putBlock(ModRegistry.Blocks.COMPUTER_NORMAL.get(), RenderType.cutout());

View File

@@ -50,7 +50,7 @@
],
"depends": {
"fabricloader": ">=0.14.21",
"fabric-api": ">=0.86.0",
"fabric-api": ">=0.86.1",
"minecraft": ">=1.19.4 <1.20"
},
"accessWidener": "computercraft.accesswidener"