Fix broken check
This commit is contained in:
@@ -132,17 +132,19 @@ public class CraftingTaskProcessing extends CraftingTask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isTileInUse(ICraftingTask task) {
|
private boolean isTileInUse(ICraftingTask task) {
|
||||||
if (task != this && task instanceof CraftingTaskProcessing) {
|
if (task != this) {
|
||||||
if (task.getChild() != null) {
|
if (task.getChild() != null) {
|
||||||
return isTileInUse(task.getChild());
|
return isTileInUse(task.getChild());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (task instanceof CraftingTaskProcessing) {
|
||||||
CraftingTaskProcessing other = (CraftingTaskProcessing) task;
|
CraftingTaskProcessing other = (CraftingTaskProcessing) task;
|
||||||
|
|
||||||
if (other.tileInUse != null && other.tileInUse.equals(pattern.getContainer().getFacingTile().getPos()) && !other.pattern.equals(pattern)) {
|
if (other.tileInUse != null && other.tileInUse.equals(pattern.getContainer().getFacingTile().getPos()) && !other.pattern.equals(pattern)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user