mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-12 00:07:29 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user