mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
fix for #765 slime leaves and oreberry bushes always rendered with low quality texture
This commit is contained in:
1 parent
e3aeca1a91
commit
dd99894322
2 files changed
+4
-1
No files matched your search
@@ -4,6 +4,7 @@ import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.BlockLeaves;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
@@ -73,7 +74,7 @@ public class SlimeLeaves extends BlockLeaves
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
int tex = meta % 4;
|
||||
|
||||
this.setGraphicsLevel(Minecraft.getMinecraft().gameSettings.fancyGraphics);
|
||||
if (this.field_150121_P)
|
||||
return fancyIcons[tex];
|
||||
else
|
||||
|
||||
@@ -6,6 +6,7 @@ import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockLeavesBase;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -74,6 +75,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
@Override
|
||||
public IIcon getIcon (int side, int metadata)
|
||||
{
|
||||
this.setGraphicsLevel(Minecraft.getMinecraft().gameSettings.fancyGraphics);
|
||||
if (field_150121_P)
|
||||
{
|
||||
if (metadata < 12)
|
||||
|
||||
Reference in new issue
Block a user