Closed Bu-Gee closed 6 years ago
Yes, all the mesecons mods are open to any form of changes. I cut all ties to the original Mesecons modpack. I just did not bother changing the mod name yet.
So. The first part of the patch is fine. Yeah, just calling minetest.dig_node
seems to have been the trick. Good job in catching a place with a missing check.
I have committed this under your name. There seem to be no problems. Thank you!
But the part where you changed the pumpkins is total nonsense. Pumpkins are not conductors! They never were. That's not how redstone power works. Your code actually made pumpkins power sources. Redstone dust would be powered by pumpkins! XD
You seem to confuse redstone conductors with opaque blocks. Any block which is opaque will transmit redstone power to the other side. The actual rules are a bit complicated, but the bottom line is that when you put a redstone power source next to an opaque block, the opaque block may also transmit that power to its neighbors. But this does not make them conductors! They differ from conductors like redstone trails in that they do not transmit redstone power recursively.. Would opaque blocks be conductors, then a single redstone torch would power on the entire world. :-)
So the real bug with pumpkins (and melons, too!) was that I made these blocks non-opaque some time ago for some reason. This was a mistake which I have fixed now. Redstone power now goes through like you expect. http://repo.or.cz/MineClone/MineClone2.git/commitdiff/e19271398d7759a597470d599dc01fada966d67b?hp=d73651424c7877ddc3916cd8d3ea8f0a5f3c522b http://repo.or.cz/MineClone/MineClone2.git/commitdiff/d2f01c68f520913b487096fc2549fe2648a32a33
Good to know about the conductors. Thanks for the info.
So, there were a few issues with pumpkins and redstone:
In fixing the second item, I introduced a new problem where the piston would both dig and push the pumpkins. This only happens when the pumpkin is a redstone conductor, so I fixed that too.
Here is a patch to fix all that. It modifies mesecons code. I don't know if that is a no-no or not.