Skip to content

Commit

Permalink
Fix smeltery structure detection having inconsistant sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Sep 11, 2014
1 parent 6bbd392 commit cdd28f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java
Expand Up @@ -32,7 +32,7 @@

public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFacingLogic, IFluidTank, IMasterLogic
{
private static final int MAX_SMELTERY_SIZE = 5;
private static final int MAX_SMELTERY_SIZE = 7;

public boolean validStructure;
public boolean tempValidStructure;
Expand Down Expand Up @@ -754,7 +754,7 @@ public void alignInitialPlacement (int x, int y, int z)
{
if(worldObj.getBlock(x - xd1, y, z) == null || worldObj.isAirBlock(x - xd1,y,z))
xd1++;
if(worldObj.getBlock(x + xd2, y, z) == null || worldObj.isAirBlock(x + xd2,y,z))
else if(worldObj.getBlock(x + xd2, y, z) == null || worldObj.isAirBlock(x + xd2,y,z))
xd2++;

// if one side hit a wall and the other didn't we might have to center our x-position again
Expand All @@ -779,7 +779,7 @@ public void alignInitialPlacement (int x, int y, int z)
{
if(worldObj.getBlock(x, y, z - zd1) == null || worldObj.isAirBlock(x, y, z - zd1))
zd1++;
if(worldObj.getBlock(x, y, z + zd2) == null || worldObj.isAirBlock(x, y, z + zd2))
else if(worldObj.getBlock(x, y, z + zd2) == null || worldObj.isAirBlock(x, y, z + zd2))
zd2++;

// if one side hit a wall and the other didn't we might have to center our x-position again
Expand Down

0 comments on commit cdd28f6

Please sign in to comment.