Added config for disabling connected textures
This commit is contained in:
parent
146deb0e8b
commit
c30633b5d3
4 changed files with 25 additions and 2 deletions
|
@ -18,6 +18,7 @@ import net.minecraft.world.World;
|
|||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.client.texture.ConnectedTexture;
|
||||
import techreborn.client.texture.CasingConnectedTextureGenerator;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.tiles.TileMachineCasing;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -70,6 +71,15 @@ public class BlockMachineCasing extends BlockMultiblockBase {
|
|||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.icons = new IIcon[types.length][16];
|
||||
if(!ConfigTechReborn.useConnectedTextures){
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
for (int j = 0; j < 15; j++) {
|
||||
icons[i][j] = iconRegister.registerIcon("techreborn:" + "machine/casing"
|
||||
+ types[i]);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
// up down left right
|
||||
icons[i][0] = genIcon(new ConnectedTexture(true, true, true, true), iconRegister, 0, i);
|
||||
|
|
|
@ -16,6 +16,7 @@ import net.minecraft.world.World;
|
|||
import techreborn.blocks.BlockMachineBase;
|
||||
import techreborn.client.texture.ConnectedTexture;
|
||||
import techreborn.client.texture.LesuConnectedTextureGenerator;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.tiles.lesu.TileLesuStorage;
|
||||
|
||||
public class BlockLesuStorage extends BlockMachineBase {
|
||||
|
@ -32,6 +33,13 @@ public class BlockLesuStorage extends BlockMachineBase {
|
|||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.icons = new IIcon[1][16];
|
||||
// up down left right
|
||||
if(!ConfigTechReborn.useConnectedTextures){
|
||||
for (int j = 0; j < 15; j++) {
|
||||
icons[0][j] = iconRegister.registerIcon("techreborn:" + "machine/lesu_block");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
icons[i][0] = genIcon(new ConnectedTexture(true, true, true, true), iconRegister, 0, i);
|
||||
icons[i][1] = genIcon(new ConnectedTexture(true, false, true, true), iconRegister, 1, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue