Skip to content

Commit

Permalink
fix small rendering bug in mobesp
Browse files Browse the repository at this point in the history
  • Loading branch information
InstanceLabs committed Jun 29, 2014
1 parent 491ad72 commit f8837c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
21 changes: 0 additions & 21 deletions LICENSE.txt

This file was deleted.

1 change: 1 addition & 0 deletions src/minecraft/net/minecraft/block/Block.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ public int getBlockBrightness(IBlockAccess p_149677_1_, int p_149677_2_, int p_1

public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_)
{
//TODO t
if (InstanceMain.xray)
{
int id = getIdFromBlock(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.Iterator;
import java.util.Map;
import net.minecraft.block.Block;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.model.ModelChicken;
import net.minecraft.client.model.ModelCow;
Expand Down Expand Up @@ -381,8 +382,10 @@ private void func_85094_b(Entity par1Entity, double par2, double par4, double pa
}
else if (par1Entity instanceof EntityPlayer)
{
var11 = AxisAlignedBB.getBoundingBox(par2 - (double)var10, par4 - (double)par1Entity.height, par6 - (double)var10, par2 + (double)var10, par4, par6 + (double)var10);
InstanceMain.getRender().drawESP(var11, 105, 0, 154); // yellowish
if(!(par1Entity instanceof EntityPlayerSP)){
//var11 = AxisAlignedBB.getBoundingBox(par2 - (double)var10, par4 - (double)par1Entity.height, par6 - (double)var10, par2 + (double)var10, par4, par6 + (double)var10);
InstanceMain.getRender().drawESP(var11, 105, 0, 154); // yellowish
}
}
else
{
Expand Down

0 comments on commit f8837c4

Please sign in to comment.