#mod-dev-talk Monday 9 November 2020
100 messages3 people
- C00:06Namespacing shit to match with the Archive data
- A
- C
- A00:10CDA?00:10
I am going to hell for thisprivate BlockPos tryFindPortal(ServerWorld world, BlockPos pos) { world.getBlockState(pos); ChunkSection chunk = world.getChunk(pos).getSectionArray()[pos.getY() >> 4]; if(!chunk.isEmpty()) for (int i = 0; i < 16; i++) { for (int j = 0; j < 16; j++) { for (int k = 0; k < 16; k++) { BlockState state = chunk.getBlockState(k, i, j); if(state.isOf(AetherBlocks.blue_portal)) { BlockPos checkPos = new BlockPos(k, i, j); while(state.isOf(AetherBlocks.blue_portal)) { checkPos.down(); state = world.getBlockState(checkPos); } return checkPos; } } } } return null; } - C
- A
- C
- A
- C00:29Stick a breakpoint on it, or log where it's getting stuck at
- A00:29You can't put breakpoints on mixins
- C
- A
if ((path.size() >= 8 && probePos == start)) { Aether.modLogger.error("1C"); valid = true; break pathfinder; }00:44This is the bit that is borked00:44We ain't getting through the if00:47Oh I see why goddamit00:48CDA, wanna know a funny bit about kotlin?00:48Kotlin's == != Java's ==00:48Kotlin's == == Java's .equals()00:49Fuck me it still doesn't work00:51Wait, I may have found it - A00:59There were two
- C
- D
- C
- D
- A07:03Let the fields be unfucked!
- D07:06We make old code good to work with the new one
- D07:34Btw, is it
code clean uporcleanup? - D@Deleted User holy shit you broke everything i was working on because you modified variable names08:09Please dont refactor code without saying08:09YOU USE AUTOCLEANUP???08:09Omfg you probably deleted half the unused code(edited)08:09i did not08:10I'm carefully looking through every single file08:10🤏 shut08:10Please do not refactor code, ever unless we all agree(edited)08:11I'm refactoring code every single morning08:11Please dont08:11It fucks shit up08:11especially when all variable names are changed08:11Yup, it fucks shit up08:11because someone wanted lowercased constants08:11Dont refactor08:11Please dont refactor anymore08:11Then don't make me08:12If we have something in capitals, we probably did it for a reason08:12everything was lowercased08:13and should be in capitals08:13Anyway you should commit more often
- A
- D
- A
- D
- A
- D
- A
But removing 90% of ore gen providor nono
Oh I remember when that happened with my portal opening code08:17That was fun - D08:17I now have to remake the entire fucking thing
- A
- D08:18@Azzyypaaras logs said it was removed because it "wasnt used" by any java code
- A
- D
- A
- D
- DMe after kalucky reverts the refactor https://media.tenor.com/images/2429d0334d764bf3a859fcdc528bc34d/tenor.gif08:29Lul



