Fix GT circuit detection with dual interfaces (#194)

* Also check machine if gt5nh

* Spotless apply for branch fixGTBlocking for #194 (#195)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
CaedisGitHub GTNH Actionsgithub-actions[bot]
authored and GitHub committed 2024-03-10 19:34:25 -05:00
1 parent 5cc8488928
commit 29cb32b6ee
1 file changed
+7 -2
@@ -338,8 +338,13 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
}
private boolean isGTMachine(Object o) {
return ModAndClassUtil.GT5 && o instanceof TileEntity
&& ((TileEntity) o).getBlockType().getUnlocalizedName().equals("gt.blockmachines");
if (!(ModAndClassUtil.GT5 || ModAndClassUtil.GT5NH)) return false;
if (o instanceof TileEntity te) {
return te.getBlockType().getUnlocalizedName().equals("gt.blockmachines");
}
return false;
}
private boolean isItemConduit(TileEntity te) {