Skip to content

Commit

Permalink
Change GlowingFeatureRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Jan 6, 2024
1 parent b83d68c commit c0d5a3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ public GlowingFeatureRenderer(FeatureRendererContext<T, M> context) {

@Override
public void render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) {
this.getContextModel().render(matrices, vertexConsumers.getBuffer(this.getGlowingLayer(entity)), 15728640, OverlayTexture.DEFAULT_UV, 1.0f, 1.0f, 1.0f, 1.0f);
this.getContextModel().render(matrices, vertexConsumers.getBuffer(this.getGlowingLayer(entity)), this.getLight(entity), OverlayTexture.DEFAULT_UV, 1.0f, 1.0f, 1.0f, 1.0f);
}

public abstract RenderLayer getGlowingLayer(T entity);

public abstract int getLight(T entity);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ public interface RepairOperations {

boolean preventsRepair(ItemStack stack);

ItemStack afterRepaired(ItemStack stack);
void afterRepaired(ItemStack stack);
}

0 comments on commit c0d5a3d

Please sign in to comment.