Skip to content

Commit

Permalink
fix pipe item stopping with shifters
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Dec 12, 2015
1 parent f705121 commit 9a55583
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/java/pl/asie/charset/pipes/PipeItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,12 @@ public int compare(EnumFacing o1, EnumFacing o2) {
// Step 3: Pick the next path.
for (EnumFacing dir : pressureList) {
if (canMoveDirection(dir, true)) {
// Pressurizer prioritizing valid direction, move.
this.output = dir;
activeShifterDistance = getInternalShifterStrength(owner.getNearestShifter(dir), dir);
return;
} else if (owner.getShifterStrength(dir) == owner.getShifterStrength(dir.getOpposite())) {
// Pressurizers freezing an item in place.
this.output = dir;
activeShifterDistance = getInternalShifterStrength(owner.getNearestShifter(dir), dir);
return;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/pl/asie/charset/pipes/TilePipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public class TilePipe extends TileBase implements IConnectable, IPipe, ITickable
protected int[] shifterDistance = new int[6];
private final Set<PipeItem> itemSet = new HashSet<PipeItem>();

private byte initClient = 6;
private boolean neighborBlockChanged;

public TilePipe() {
Expand Down

0 comments on commit 9a55583

Please sign in to comment.