April 26, 20178 yr Author 32 minutes ago, diesieben07 said: You need two getCapability calls, one with side, one with null (if side fails). Make sure that you have a breakpoint inside the lambda. You can't step-into a lambda (unless you are using IntelliJ's new smart step-into). If it really is not called then the map is empty. Well, I've had one breakpoint before the lambda and one breakpoint inside the forEach loop with the lambda. EDIT: Hm, the list seems to be emtpy, so somewhere in the search method findTransferPipes has to be a problem. Edited April 26, 20178 yr by Bektor Developer of Primeval Forest.
April 26, 20178 yr Author Hm, when placing a breakpoint in the findTransferPipes methods in this line: if(this.getWorld().getTileEntity(current) instanceof TileEntityPipeEnergy) this.getBlocksToScan(toSearch, scanned, current); // Breakpoint at this line It seems like the block is always scanning the same position, as the current BlockPos had the same values even after going through about 40 times this breakpoint. It also seems like the else if statement is never reached. What was my construct for testing it (shows y axis, as x and z are the same for all of these blocks): Quote X -> transfer pipe Y -> cable X -> transfer pipe EDIT: Hm, seems like the if-statement which checks if new blocks should be added was wrong. I also changed EnumSet.allOf(EnumFacing.class) back to EnumFacing.VALUES. But now it scans all block positions which should be scanned again and adds the correct blocks to the list. Edited April 27, 20178 yr by Bektor Developer of Primeval Forest.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.