Small fixes
This commit is contained in:
@@ -293,8 +293,7 @@ public class CraftingTask implements ICraftingTask {
|
||||
if (processable.getPattern().isProcessing()) {
|
||||
for (ICraftingTask otherTask : network.getCraftingTasks()) {
|
||||
for (ICraftingStep otherProcessable : otherTask.getSteps()) {
|
||||
if (otherProcessable.getPattern().isProcessing()) {
|
||||
if (otherProcessable != processable && !otherProcessable.hasReceivedOutputs() && otherProcessable.hasStartedProcessing() && otherProcessable.getPattern().getContainer().getFacingTile() != null) {
|
||||
if (otherProcessable.getPattern().isProcessing() && otherProcessable != processable && !otherProcessable.hasReceivedOutputs() && otherProcessable.hasStartedProcessing() && otherProcessable.getPattern().getContainer().getFacingTile() != null) {
|
||||
if (processable.getPattern().getContainer().getFacingTile().getPos().equals(otherProcessable.getPattern().getContainer().getFacingTile().getPos())) {
|
||||
if (!arePatternsEqual(processable.getPattern(), otherProcessable.getPattern())) {
|
||||
return false;
|
||||
@@ -310,7 +309,6 @@ public class CraftingTask implements ICraftingTask {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -81,14 +81,13 @@ public class TileDiskManipulator extends TileNode implements IComparable, IFilte
|
||||
protected void onContentsChanged(int slot) {
|
||||
super.onContentsChanged(slot);
|
||||
|
||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER && slot < 6) {
|
||||
RSUtils.constructFromDrive(getStackInSlot(slot), slot, itemStorages, fluidStorages, s -> new ItemStorage(s), s -> new FluidStorage(s));
|
||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) {
|
||||
RSUtils.constructFromDrive(getStackInSlot(slot), slot, itemStorages, fluidStorages, ItemStorage::new, FluidStorage::new);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack extractItem(int slot, int amount, boolean simulate) {
|
||||
if (slot < 6) {
|
||||
if (itemStorages[slot] != null) {
|
||||
itemStorages[slot].writeToNBT();
|
||||
}
|
||||
@@ -96,7 +95,7 @@ public class TileDiskManipulator extends TileNode implements IComparable, IFilte
|
||||
if (fluidStorages[slot] != null) {
|
||||
fluidStorages[slot].writeToNBT();
|
||||
}
|
||||
}
|
||||
|
||||
return super.extractItem(slot, amount, simulate);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user