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