Skip to content

Commit

Permalink
patch files are dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbudda committed Jun 13, 2016
1 parent 12fbc55 commit cc191db
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
}

public void updateController()
@@ -401,7 +417,16 @@
@@ -401,7 +428,16 @@
}
else
{
Expand All @@ -81,7 +81,7 @@
}
}

@@ -423,9 +448,15 @@
@@ -423,9 +459,15 @@
{
player.inventory.mainInventory[player.inventory.currentItem] = var5;

Expand Down
32 changes: 18 additions & 14 deletions patches/net/minecraft/client/renderer/entity/RenderItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class RenderItem extends Render
{
@@ -95,6 +96,13 @@
@@ -92,6 +93,13 @@
float var19;
int var25;

Expand Down Expand Up @@ -93,7 +93,7 @@
GL11.glEnable(GL11.GL_LIGHTING);
}
else
@@ -520,7 +531,11 @@
@@ -520,7 +530,11 @@

try
{
Expand Down Expand Up @@ -143,26 +143,30 @@
- float var10 = 0.0F;
- Tessellator var11 = Tessellator.instance;
- float var12 = 4.0F;
+ float f = 0.00390625F;
+ float f1 = 0.00390625F;
+ float f2 = (float)(Minecraft.getSystemTime() % (long)(3000 + j1 * 1873)) / (3000.0F + (float)(j1 * 1873)) * 256.0F;
+ float f3 = 0.0F;
+ Tessellator tessellator = Tessellator.instance;
+ float f4 = 4.0F;

-
- if (var6 == 1)
+ if (j1 == 1)
{
- {
- var12 = -1.0F;
+ f4 = -1.0F;
}

- }
-
- var11.startDrawingQuads();
- var11.addVertexWithUV((double)(p_77018_2_ + 0), (double)(p_77018_3_ + p_77018_5_), (double)this.zLevel, (double)((var9 + (float)p_77018_5_ * var12) * var7), (double)((var10 + (float)p_77018_5_) * var8));
- var11.addVertexWithUV((double)(p_77018_2_ + p_77018_4_), (double)(p_77018_3_ + p_77018_5_), (double)this.zLevel, (double)((var9 + (float)p_77018_4_ + (float)p_77018_5_ * var12) * var7), (double)((var10 + (float)p_77018_5_) * var8));
- var11.addVertexWithUV((double)(p_77018_2_ + p_77018_4_), (double)(p_77018_3_ + 0), (double)this.zLevel, (double)((var9 + (float)p_77018_4_) * var7), (double)((var10 + 0.0F) * var8));
- var11.addVertexWithUV((double)(p_77018_2_ + 0), (double)(p_77018_3_ + 0), (double)this.zLevel, (double)((var9 + 0.0F) * var7), (double)((var10 + 0.0F) * var8));
- var11.draw();
+ float f = 0.00390625F;
+ float f1 = 0.00390625F;
+ float f2 = (float)(Minecraft.getSystemTime() % (long)(3000 + j1 * 1873)) / (3000.0F + (float)(j1 * 1873)) * 256.0F;
+ float f3 = 0.0F;
+ Tessellator tessellator = Tessellator.instance;
+ float f4 = 4.0F;
+
+ if (j1 == 1)
+ {
+ f4 = -1.0F;
+ }
+
+ tessellator.startDrawingQuads();
+ tessellator.addVertexWithUV((double)(p_77018_2_ + 0), (double)(p_77018_3_ + p_77018_5_), (double)this.zLevel, (double)((f2 + (float)p_77018_5_ * f4) * f), (double)((f3 + (float)p_77018_5_) * f1));
+ tessellator.addVertexWithUV((double)(p_77018_2_ + p_77018_4_), (double)(p_77018_3_ + p_77018_5_), (double)this.zLevel, (double)((f2 + (float)p_77018_4_ + (float)p_77018_5_ * f4) * f), (double)((f3 + (float)p_77018_5_) * f1));
Expand Down

0 comments on commit cc191db

Please sign in to comment.