At last one free face.
This commit is contained in:
parent
ef22bf6ab9
commit
e85a761e82
1 changed files with 6 additions and 4 deletions
|
@ -346,11 +346,13 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B
|
||||||
@Override
|
@Override
|
||||||
public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer) {
|
public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer) {
|
||||||
if (aBaseMetaTileEntity.isClientSide()) return true;
|
if (aBaseMetaTileEntity.isClientSide()) return true;
|
||||||
if(aBaseMetaTileEntity.getAirAtSide((byte) mMainFacing)){
|
for(byte i=0;i < 6; i++){
|
||||||
aBaseMetaTileEntity.openGUI(aPlayer);
|
if(aBaseMetaTileEntity.getAirAtSide(i)){
|
||||||
}else{
|
aBaseMetaTileEntity.openGUI(aPlayer);
|
||||||
GT_Utility.sendChatToPlayer(aPlayer,"Front blocked!");
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
GT_Utility.sendChatToPlayer(aPlayer,"No free Side!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue