Skip to content

Commit

Permalink
make it work in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
plusls committed Jan 22, 2022
1 parent a20a543 commit 5882287
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.18.1
yarn_mappings=18
yarn_mappings=22
loader_version=0.12.12
# Mod Properties
mod_version=0.4.1
Expand All @@ -12,6 +12,6 @@ maven_group=com.plusls
archives_base_name=oh-my-minecraft-client
# Dependencies
java_version=17
fabric_version=0.45.2+1.18
fabric_version=0.46.2+1.18
malilib_version=3544210
mod_menu_version=3.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public abstract class MixinBlockRenderContext implements RenderContext {
private Supplier<Random> randomSupplier;

@Inject(method = "render", at = @At(value = "INVOKE",
target = "Lnet/fabricmc/fabric/api/renderer/v1/model/FabricBakedModel;emitBlockQuads", shift = At.Shift.AFTER, ordinal = 0))
target = "Lnet/fabricmc/fabric/api/renderer/v1/model/FabricBakedModel;emitBlockQuads(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Supplier;Lnet/fabricmc/fabric/api/renderer/v1/render/RenderContext;)V", shift = At.Shift.AFTER, ordinal = 0, remap = true))
private void emitCustomBlockQuads(BlockRenderView blockView, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, VertexConsumer buffer, Random random, long seed, int overlay, CallbackInfoReturnable<Boolean> cir) {
WorldEaterMineHelperUtil.emitCustomBlockQuads(blockView, state, pos, randomSupplier, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class MixinTerrainRenderContext implements RenderContext {
private TerrainBlockRenderInfo blockInfo;

@Inject(method = "tesselateBlock", at = @At(value = "INVOKE",
target = "Lnet/fabricmc/fabric/api/renderer/v1/model/FabricBakedModel;emitBlockQuads", shift = At.Shift.AFTER, ordinal = 0))
target = "Lnet/fabricmc/fabric/api/renderer/v1/model/FabricBakedModel;emitBlockQuads(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Supplier;Lnet/fabricmc/fabric/api/renderer/v1/render/RenderContext;)V", shift = At.Shift.AFTER, ordinal = 0, remap = true))
private void emitCustomBlockQuads(BlockState blockState, BlockPos blockPos, BakedModel model, MatrixStack matrixStack, CallbackInfoReturnable<Boolean> cir) {
WorldEaterMineHelperUtil.emitCustomBlockQuads(blockInfo.blockView, blockInfo.blockState, blockInfo.blockPos, blockInfo.randomSupplier, this);
}
Expand Down

0 comments on commit 5882287

Please sign in to comment.