mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 02:45:08 +00:00
move reflection to Ae2Reflect
This commit is contained in:
1 parent
521a256378
commit
e9351c5302
2 files changed
+13
-10
No files matched your search
@@ -201,18 +201,9 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
|
||||
p2p = invFluidsP2P.getInput();
|
||||
checkedInput = true;
|
||||
}
|
||||
|
||||
if (p2p == invFluidsP2P || p2p == null)
|
||||
continue;
|
||||
|
||||
try {
|
||||
Method getTarget = p2p.getClass().getDeclaredMethod("getTarget");
|
||||
getTarget.setAccessible(true);
|
||||
tankInfos.add(((IFluidHandler) getTarget.invoke(p2p)).getTankInfo(p2p.getSide().getOpposite()));
|
||||
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
|
||||
// skip if we can't read the target
|
||||
}
|
||||
|
||||
tankInfos.add(Ae2Reflect.getP2PLiquidTarget(p2p).getTankInfo(p2p.getSide().getOpposite()));
|
||||
}
|
||||
} catch (GridAccessException e) {
|
||||
// ignore
|
||||
|
||||
Reference in new issue
Block a user