Fixed the GTLog spam, ty Techlone
This commit is contained in:
parent
c2c9fad120
commit
1c75968fad
1 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription, ITexture... aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription, ITexture... aTextures) {
|
||||||
super(aID, aName, aNameRegional, aInvSlotCount);
|
super(aID, aName, aNameRegional, aInvSlotCount);
|
||||||
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
||||||
mDescription = new String[]{aDescription};
|
mDescription = aDescription == null ? new String[0] : new String[]{aDescription};
|
||||||
|
|
||||||
// must always be the last call!
|
// must always be the last call!
|
||||||
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
||||||
|
@ -34,7 +34,7 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String[] aDescription, ITexture... aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String[] aDescription, ITexture... aTextures) {
|
||||||
super(aID, aName, aNameRegional, aInvSlotCount);
|
super(aID, aName, aNameRegional, aInvSlotCount);
|
||||||
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
||||||
mDescription = aDescription;
|
mDescription = aDescription == null ? new String[0] : aDescription;
|
||||||
|
|
||||||
// must always be the last call!
|
// must always be the last call!
|
||||||
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
||||||
|
@ -44,14 +44,14 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures) {
|
||||||
super(aName, aInvSlotCount);
|
super(aName, aInvSlotCount);
|
||||||
mTier = (byte) aTier;
|
mTier = (byte) aTier;
|
||||||
mDescription = new String[]{aDescription};
|
mDescription = aDescription == null ? new String[0] : new String[]{aDescription};
|
||||||
mTextures = aTextures;
|
mTextures = aTextures;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String[] aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String[] aDescription, ITexture[][][] aTextures) {
|
||||||
super(aName, aInvSlotCount);
|
super(aName, aInvSlotCount);
|
||||||
mTier = (byte) aTier;
|
mTier = (byte) aTier;
|
||||||
mDescription = aDescription;
|
mDescription = aDescription == null ? new String[0] : aDescription;
|
||||||
mTextures = aTextures;
|
mTextures = aTextures;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue