why does the client crash when using isClientSide() ???
This commit is contained in:
parent
61d17d250d
commit
9447eea43b
3 changed files with 5 additions and 3 deletions
|
@ -303,7 +303,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile
|
|||
|
||||
@Override
|
||||
public float getThickNess() {
|
||||
if(getBaseMetaTileEntity().isClientSide() && GT_Client.hideValue==1) return 0.0625F;
|
||||
if(GT_Mod.instance.isClientSide() && GT_Client.hideValue==1) return 0.0625F;
|
||||
return mThickNess;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package gregtech.api.metatileentity.implementations;
|
||||
|
||||
import gregtech.GT_Mod;
|
||||
import gregtech.api.GregTech_API;
|
||||
import gregtech.api.enums.Dyes;
|
||||
import gregtech.api.enums.ItemList;
|
||||
|
@ -412,7 +413,7 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity {
|
|||
|
||||
@Override
|
||||
public float getThickNess() {
|
||||
if(getBaseMetaTileEntity().isClientSide() && GT_Client.hideValue==1) return 0.0625F;
|
||||
if(GT_Mod.instance.isClientSide() && GT_Client.hideValue==1) return 0.0625F;
|
||||
return mThickNess;
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package gregtech.api.metatileentity.implementations;
|
||||
|
||||
import gregtech.GT_Mod;
|
||||
import gregtech.api.enums.*;
|
||||
import gregtech.api.interfaces.ITexture;
|
||||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
||||
|
@ -314,7 +315,7 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE
|
|||
|
||||
@Override
|
||||
public float getThickNess() {
|
||||
if(getBaseMetaTileEntity().isClientSide() && GT_Client.hideValue==1) return 0.0625F;
|
||||
if(GT_Mod.instance.isClientSide() && GT_Client.hideValue==1) return 0.0625F;
|
||||
return mThickNess;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue