Skip to content

Commit

Permalink
Fix submarine's always having a red tint to them when used without ca…
Browse files Browse the repository at this point in the history
…nvas or iris
  • Loading branch information
Motschen committed Aug 2, 2021
1 parent c094f05 commit be27f1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx2G
loader_version=0.11.6

# Mod Properties
mod_version = 0.1.1
mod_version = 0.1.2
maven_group = eu.midnightdust
archives_base_name = nauticality

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import eu.midnightdust.nauticality.entity.client.model.SubmarineModel;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.render.OverlayTexture;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.render.entity.EntityRenderer;
Expand Down Expand Up @@ -43,7 +44,7 @@ public void render(SubmarineEntity entity, float yaw, float tickDelta, MatrixSta
matrixStack.translate(0.0D , -1.75D, -0.5D + (90 + entity.getPitch()) * 0.01f);
matrixStack.scale(1.2f,1.2f,1.2f);
model.setAngles(entity,tickDelta,0,0,yaw,entity.getPitch());
model.render(matrixStack, vertexConsumers.getBuffer(RenderLayer.getEntityCutout(getTexture(entity))), light, 1,1f,1f,1f,1f);
model.render(matrixStack, vertexConsumers.getBuffer(RenderLayer.getEntityCutout(getTexture(entity))), light, OverlayTexture.DEFAULT_UV,1f,1f,1f,1f);
overlay.render(matrixStack,vertexConsumers,light,entity,yaw,0f,tickDelta,0f,yaw,entity.getPitch());
matrixStack.pop();
}
Expand Down

0 comments on commit be27f1a

Please sign in to comment.