Skip to content

Commit

Permalink
Fixed wires connecting to eachother in weird ways
Browse files Browse the repository at this point in the history
If you placed a wire, a cover on the opposite face and on that cover,  another wire, they'd connect. That's now fixed :)
  • Loading branch information
amadornes committed Feb 27, 2015
1 parent 86552a5 commit affd190
Showing 1 changed file with 4 additions and 6 deletions.
Expand Up @@ -256,9 +256,8 @@ protected int getColorMultiplier() {
@Override
public boolean canConnect(ForgeDirection side, IRedstoneDevice device, ConnectionType type) {

if (type == ConnectionType.STRAIGHT)
if ((side == getFace().getOpposite() || side == ForgeDirection.UNKNOWN) && device instanceof DummyRedstoneDevice)
return false;
if (type == ConnectionType.STRAIGHT && side == getFace().getOpposite() || side == ForgeDirection.UNKNOWN)
return false;
if (type == ConnectionType.CLOSED_CORNER) {
if (side == getFace())
return false;
Expand Down Expand Up @@ -597,9 +596,8 @@ protected int getColorMultiplier() {
@Override
public boolean canConnect(ForgeDirection side, IRedstoneDevice device, ConnectionType type) {

if (type == ConnectionType.STRAIGHT)
if ((side == getFace().getOpposite() || side == ForgeDirection.UNKNOWN) && device instanceof DummyRedstoneDevice)
return false;
if (type == ConnectionType.STRAIGHT && side == getFace().getOpposite() || side == ForgeDirection.UNKNOWN)
return false;
if (type == ConnectionType.CLOSED_CORNER) {
if (side == getFace())
return false;
Expand Down

0 comments on commit affd190

Please sign in to comment.