Skip to content

Commit

Permalink
Fixed redstone machine indirect connectivity...
Browse files Browse the repository at this point in the history
...issues
1. Fixed levers needing to be on top to provide power to redstone
machines
2. Fixed a sidedness derp for the east and west directions
  • Loading branch information
fuj1n committed Dec 5, 2013
1 parent dc78401 commit c90a069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tmechworks/blocks/RedstoneMachine.java
Expand Up @@ -302,7 +302,7 @@ public void onNeighborBlockChange (World world, int x, int y, int z, int neighbo
continue;

coord = directions.get(i);
tmpStrength = world.getIndirectPowerLevelTo(x + coord.x, y + coord.y, z + coord.z, (i == 2 || i == 3) ? i : i ^ 1);
tmpStrength = world.getIndirectPowerLevelTo(x + coord.x, y + coord.y, z + coord.z, i);
if (tmpStrength > maxStrength)
{
maxStrength = tmpStrength;
Expand Down Expand Up @@ -419,7 +419,7 @@ public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase
directions.add(new CoordTuple(0, 1, 0));
directions.add(new CoordTuple(0, 0, -1));
directions.add(new CoordTuple(0, 0, 1));
directions.add(new CoordTuple(1, 0, 0));
directions.add(new CoordTuple(-1, 0, 0));
directions.add(new CoordTuple(1, 0, 0));
}
}
Expand Up @@ -70,7 +70,7 @@ void setFire ()
Block block = Block.blocksList[worldObj.getBlockId(xPos, yPos, zPos)];
if (active)
{
TMechworks.logger.info("Setting fire");
// TMechworks.logger.info("Setting fire");
if (block == null || block.isAirBlock(worldObj, xPos, yPos, zPos))
{
worldObj.playSoundEffect((double) xPos + 0.5D, (double) yPos + 0.5D, (double) zPos + 0.5D, "fire.ignite", 1.0F, AbilityHelper.random.nextFloat() * 0.4F + 0.8F);
Expand Down

1 comment on commit c90a069

@fuj1n
Copy link
Member Author

@fuj1n fuj1n commented on c90a069 Dec 5, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I said 3). Commented out the Firestarter console message.

Please sign in to comment.