Skip to content

Commit

Permalink
Update to 1.1.13 #change "Updated to work with latest frapi changes" …
Browse files Browse the repository at this point in the history
…#change "improved shear compatibility by using the shears tag" #release stable
  • Loading branch information
NeusFear committed Jul 26, 2020
1 parent f677c2b commit 02dce71
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.apache.commons.lang3.tuple.Pair;

import java.util.List;
import java.util.Random;

public class RopeBridgePostBlockEntityRenderer extends BlockEntityRenderer<RopeBridgePostBlockEntity> {

Expand All @@ -30,17 +31,17 @@ 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<BlockPos, List<RopeBridgePlank>> pair : pairs) {
BlockPos deltaPos = pair.getLeft().subtract(blockEntity.getPos());
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();
}
Expand Down

0 comments on commit 02dce71

Please sign in to comment.