dont modify arguments

This commit is contained in:
Leijurv 2018-09-16 17:51:39 -07:00
parent af58304b38
commit 543c0d0a33
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -56,7 +56,7 @@ public final class PathRenderer implements Helper {
private static final Tessellator TESSELLATOR = Tessellator.getInstance(); private static final Tessellator TESSELLATOR = Tessellator.getInstance();
private static final BufferBuilder BUFFER = TESSELLATOR.getBuffer(); private static final BufferBuilder BUFFER = TESSELLATOR.getBuffer();
public static void drawPath(IPath path, int startIndex, EntityPlayerSP player, float partialTicks, Color color, boolean fadeOut, int fadeStart, int fadeEnd) { public static void drawPath(IPath path, int startIndex, EntityPlayerSP player, float partialTicks, Color color, boolean fadeOut, int fadeStart0, int fadeEnd0) {
GlStateManager.enableBlend(); GlStateManager.enableBlend();
GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO); GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO);
GlStateManager.color(color.getColorComponents(null)[0], color.getColorComponents(null)[1], color.getColorComponents(null)[2], 0.4F); GlStateManager.color(color.getColorComponents(null)[0], color.getColorComponents(null)[1], color.getColorComponents(null)[2], 0.4F);
@ -66,8 +66,8 @@ public final class PathRenderer implements Helper {
List<BetterBlockPos> positions = path.positions(); List<BetterBlockPos> positions = path.positions();
int next; int next;
Tessellator tessellator = Tessellator.getInstance(); Tessellator tessellator = Tessellator.getInstance();
fadeStart += startIndex; int fadeStart = fadeStart0 + startIndex;
fadeEnd += startIndex; int fadeEnd = fadeEnd0 + startIndex;
for (int i = startIndex; i < positions.size() - 1; i = next) { for (int i = startIndex; i < positions.size() - 1; i = next) {
BlockPos start = positions.get(i); BlockPos start = positions.get(i);