mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
minor cleanup to fabricator
This commit is contained in:
1 parent
9251e17b9a
commit
20b3db9b41
1 file changed
+3
-8
@@ -577,12 +577,7 @@ public class MachineFabricator extends TilePowered implements ICrafter, ILiquidT
|
||||
return RecipeManager.findMatchingSmelting(itemStack) != null;
|
||||
} else if (slotIndex == SLOT_PLAN) {
|
||||
return RecipeManager.isPlan(itemStack);
|
||||
}
|
||||
return GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT);
|
||||
}
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int slotIndex, ItemStack itemStack) {
|
||||
if (GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT)) {
|
||||
} else if (GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT)) {
|
||||
if (tile.getRecipe() != null) {
|
||||
return tile.getRecipe().internal.isIngredient(itemStack);
|
||||
}else if (RecipeManager.isPlan(itemStack) ) {
|
||||
@@ -591,8 +586,8 @@ public class MachineFabricator extends TilePowered implements ICrafter, ILiquidT
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExtractItem(int slotIndex, ItemStack stack, int side) {
|
||||
|
||||
Reference in new issue
Block a user