Skip to content

Commit 60d40e1

Browse files
committed
Add static NO_TINT TintColorProvider function
1 parent bce0ba0 commit 60d40e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/de/bluecolored/bluemap/core/map/hires/entity/ResourceModelRenderer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void render(Entity entity, BlockNeighborhood block, Part part, TileModelV
8383
entity,
8484
block,
8585
part.getModel().getResource(resourcePack::getModel),
86-
(index, color) -> color.set(1f, 1f, 1f, 1f, true),
86+
TintColorProvider.NO_TINT,
8787
tileModel
8888
);
8989

@@ -250,6 +250,7 @@ private void createElementFace(Element element, Direction faceDir, VectorM3f c0,
250250
}
251251

252252
interface TintColorProvider {
253+
TintColorProvider NO_TINT = (index, color) -> color.set(1f, 1f, 1f, 1f, true);
253254
void setTintColor(int tintIndex, Color target);
254255
}
255256

0 commit comments

Comments
 (0)