more gtceu p2p fixes

This commit is contained in:
PrototypeTrousers
2022-01-20 17:05:21 -03:00
parent e0ddb92b81
commit 4414451f5e
5 changed files with 40 additions and 17 deletions
@@ -80,14 +80,9 @@ public final class P2PTunnelRegistry implements IP2PTunnelRegistry
gtceOreDict.add("cableGtSingle");
for(String oreDict : gtceOreDict) {
Arrays.stream(OreDictionary.getOreNames()).filter(s -> s.startsWith(oreDict)).forEach(s -> {
OreHelper.INSTANCE.getCachedOres(s).forEach(
stack -> {
this.addNewAttunement(stack, TunnelType.GTCEU_POWER);
AELog.info("Added " + stack + " to P2P Tunnel Registry");
});
}
);
Arrays.stream( OreDictionary.getOreNames() ).filter( oreName -> oreName.startsWith( oreDict ) ).forEach( oreName -> {
OreHelper.INSTANCE.getCachedOres( oreName ).forEach( stack -> this.addNewAttunement( stack, TunnelType.GTCEU_POWER ) );
} );
}
/**