Fixed the textures for logs to display according to their orientation

This commit is contained in:
Amnet 2013-04-07 00:41:24 +02:00
parent 9b2ad6f701
commit d6afcf50d2
11 changed files with 44 additions and 88 deletions

View file

@ -36,15 +36,11 @@ public class BlockAcaciaLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockCherryLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockDarkLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockDeadLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockFirLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockHolyLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -35,15 +35,11 @@ public class BlockMagicLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockMangroveLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockPalmLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockRedwoodLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block

View file

@ -36,15 +36,11 @@ public class BlockWillowLog extends Block
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
int pos = par2 & 12;
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
return blockIcon[0];
}
else
{
return blockIcon[1];
}
}
/**
* The type of render function that is called for this block