Page 1 of 1

mcMMO treefeller code review

Posted: 1.10.2025 19:10:26
by Julius
So this is just one example of bad mcMMO code we have to deal here.
So here is the original code that had error of dropping incorrect type of LOG when their data was different than block breaked.
mcmmo original part 1.JPG
(90.63 KiB) Not downloaded yet
And here is how i fixed it:
mcmmo new part 1.JPG
(74.27 KiB) Not downloaded yet
Well thats not all...
There was that BAD sub function that had another sub function witch handled adding blocks to the treefeller list, just take a look:
mcmmo original part 2.JPG
(57.82 KiB) Not downloaded yet
mcmmo original part 3.JPG
(71.56 KiB) Not downloaded yet
Yeah.. well reprogrammed that function and now it looks like this (and yes this includes both of the images above):
mcmmo new part 2.JPG
(73.94 KiB) Not downloaded yet