mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
quick fix : Simplifiable conditional expression
This commit is contained in:
1 parent
cdc7dcf5d0
commit
0657a754e2
9 files changed
+20
-34
No files matched your search
@@ -29,27 +29,15 @@ public class BattlesignBlock extends EquipBlock {
|
||||
@Override
|
||||
public boolean shouldSideBeRendered(
|
||||
IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) {
|
||||
return p_149646_5_ == 0 && this.minY > 0.0D
|
||||
? true
|
||||
: (p_149646_5_ == 1 && this.maxY < 1.0D
|
||||
? true
|
||||
: (p_149646_5_ == 2 && this.minZ > 0.0D
|
||||
? true
|
||||
: (p_149646_5_ == 3 && this.maxZ < 1.0D
|
||||
? true
|
||||
: (p_149646_5_ == 4 && this.minX > 0.0D
|
||||
? true
|
||||
: (p_149646_5_ == 5 && this.maxX < 1.0D
|
||||
? true
|
||||
: !(p_149646_1_
|
||||
.getBlock(p_149646_2_, p_149646_3_, p_149646_4_)
|
||||
.isOpaqueCube()
|
||||
&& p_149646_1_
|
||||
.getBlock(
|
||||
p_149646_2_,
|
||||
p_149646_3_ + 1,
|
||||
p_149646_4_)
|
||||
.isOpaqueCube()))))));
|
||||
return p_149646_5_ == 0 && this.minY > 0.0D || (p_149646_5_ == 1 && this.maxY < 1.0D || (p_149646_5_ == 2 && this.minZ > 0.0D || (p_149646_5_ == 3 && this.maxZ < 1.0D || (p_149646_5_ == 4 && this.minX > 0.0D || (p_149646_5_ == 5 && this.maxX < 1.0D || !(p_149646_1_
|
||||
.getBlock(p_149646_2_, p_149646_3_, p_149646_4_)
|
||||
.isOpaqueCube()
|
||||
&& p_149646_1_
|
||||
.getBlock(
|
||||
p_149646_2_,
|
||||
p_149646_3_ + 1,
|
||||
p_149646_4_)
|
||||
.isOpaqueCube()))))));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -44,7 +44,7 @@ public abstract class EquipLogic extends InventoryLogic {
|
||||
|
||||
@Override
|
||||
public boolean isStackInSlot(int slot) {
|
||||
return slot != 0 ? inventory[slot] != null : false;
|
||||
return slot != 0 && inventory[slot] != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -307,7 +307,7 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int par1, ItemStack par2ItemStack) {
|
||||
return par1 == 2 ? false : (par1 == 1 ? isItemFuel(par2ItemStack) : true);
|
||||
return par1 != 2 && (par1 != 1 || isItemFuel(par2ItemStack));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user