From 02dce710adcdc15a15e695b66d32ed8c8b39a6ff Mon Sep 17 00:00:00 2001 From: Brandon Davis Date: Sat, 25 Jul 2020 21:09:58 -0500 Subject: [PATCH] Update to 1.1.13 #change "Updated to work with latest frapi changes" #change "improved shear compatibility by using the shears tag" #release stable --- build.gradle | 2 +- gradle.properties | 4 ++-- .../blockentity/RopeBridgePostBlockEntityRenderer.java | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 68ca4c7e..6c19e1a0 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'maven-publish' id 'idea' id 'eclipse' - id 'fabric-loom' version '0.2.7-SNAPSHOT' + id 'fabric-loom' version '0.4-SNAPSHOT' id 'com.matthewprenger.cursegradle' version '1.4.0' id 'net.dumbcode.gradlehook' version '1.3.1' } diff --git a/gradle.properties b/gradle.properties index 818207a9..7462bd1e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,13 +1,13 @@ org.gradle.jvmargs=-Xmx1G -mod_version=1.1.12 +mod_version=1.1.13 maven_group=com.terraformersmc archive_name=campanion minecraft_version=1.16.1 yarn_mappings=1.16.1+build.4 loader_version=0.8.8+build.202 -fabric_version=0.13.1+build.370-1.16 +fabric_version=0.16.0+build.384-1.16.1 dossier_version=0.2.3+build.9 reach_entity_attributes_version=1.0.1 diff --git a/src/main/java/com/terraformersmc/campanion/client/renderer/blockentity/RopeBridgePostBlockEntityRenderer.java b/src/main/java/com/terraformersmc/campanion/client/renderer/blockentity/RopeBridgePostBlockEntityRenderer.java index 01fd6397..196f4f7d 100644 --- a/src/main/java/com/terraformersmc/campanion/client/renderer/blockentity/RopeBridgePostBlockEntityRenderer.java +++ b/src/main/java/com/terraformersmc/campanion/client/renderer/blockentity/RopeBridgePostBlockEntityRenderer.java @@ -18,6 +18,7 @@ import org.apache.commons.lang3.tuple.Pair; import java.util.List; +import java.util.Random; public class RopeBridgePostBlockEntityRenderer extends BlockEntityRenderer { @@ -30,7 +31,7 @@ public RopeBridgePostBlockEntityRenderer(BlockEntityRenderDispatcher dispatcher) @Override public void render(RopeBridgePostBlockEntity blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) { VertexConsumer buffer = vertexConsumers.getBuffer(RenderLayer.getTranslucent()); - BlockModelRenderer bmr = MinecraftClient.getInstance().getBlockRenderManager().getModelRenderer(); + Random random = new Random(); blockEntity.getGhostPlanks().forEach((pos, pairs) -> { for (Pair> pair : pairs) { @@ -38,9 +39,9 @@ public void render(RopeBridgePostBlockEntity blockEntity, float tickDelta, Matri matrices.push(); matrices.translate(deltaPos.getX(), deltaPos.getY(), deltaPos.getZ()); - CONTEXTS.get().tesselate( - bmr, blockEntity.getWorld(), BridgePlanksBakedModel.createStaticModel(pair.getRight()), Blocks.AIR.getDefaultState(), BlockPos.ORIGIN.up(500), - matrices, buffer, false, -1, BlockPos.ORIGIN.equals(deltaPos) ? overlay : OverlayTexture.DEFAULT_UV + CONTEXTS.get().render( + blockEntity.getWorld(), BridgePlanksBakedModel.createStaticModel(pair.getRight()), Blocks.AIR.getDefaultState(), BlockPos.ORIGIN.up(500), + matrices, buffer, random, -1, BlockPos.ORIGIN.equals(deltaPos) ? overlay : OverlayTexture.DEFAULT_UV ); matrices.pop(); }