Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysticpasta1 committed Dec 31, 2023
1 parent 9e73431 commit ec5a9a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void render(MatrixStack matrices, VertexConsumerProvider.Immediate immedi
//matrices.scale(0.0f, 0.0f, 0.0f); //TODO make this usable with scaling sliders
matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees((float) (System.currentTimeMillis() / 60d % 360d)));

// MinecraftClient.getInstance().getItemRenderer().renderItem(data, ModelTransformationMode.GROUND, light, overlay, matrices, immediate.getBuffer(RenderLayer.getSolid()), null, 0); //TODO: FIX
MinecraftClient.getInstance().getItemRenderer().renderItem(data, ModelTransformationMode.GROUND, light, overlay, matrices, immediate, null, 0); //TODO: FIX
}

@Override
Expand Down Expand Up @@ -351,7 +351,7 @@ public static AreaProvider from(BlockPos start, BlockPos end) throws ExecutionEx
@Environment(EnvType.CLIENT)
public void render(MatrixStack matrices, VertexConsumerProvider.Immediate immediate, float tickDelta, int light, int overlay, BlockEntity be) {

if (client.world.getTime() - lastUpdateTick > 1200) {
if (client.world.getTime() - lastUpdateTick > 160) {
lastUpdateTick = client.world.getTime();
mesh.scheduleRebuild();
}
Expand Down

0 comments on commit ec5a9a4

Please sign in to comment.