Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Added blank airColor support
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenDEV committed Dec 17, 2020
1 parent efa88b0 commit a66725d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion forge-1.14.4/templates/dimension.java.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ import org.apache.logging.log4j.util.Supplier;
</#if>

@Override @OnlyIn(Dist.CLIENT) public Vec3d getFogColor(float cangle, float ticks) {
<#if data.airColor?has_content>
return new Vec3d(${data.airColor.getRed()/255},${data.airColor.getGreen()/255},${data.airColor.getBlue()/255});
<#else>
return new Vec3d(0.753f, 0.847f, 1);
</#if>
}

@Override public ChunkGenerator<?> createChunkGenerator() {
Expand Down Expand Up @@ -211,4 +215,4 @@ import org.apache.logging.log4j.util.Supplier;

}

<#-- @formatter:on -->
<#-- @formatter:on -->

0 comments on commit a66725d

Please sign in to comment.