Can I use closed source code in my repo?

So I have this problem.
I wanna post code from a closed-source project that I modified.
I don’t know if I’m allowed to do this since its closed source and that definitely for reasons (that I actually don’t know)
So how can I do this? Am I allowed to do it? Can I just straight up NOT do it?
Greetings

1 Like

That sounds like the real question is: Would it be a copyright violation if you post that code? From your question I’m kind of guessing it would be, but for a reliable answer to that question I’m afraid you’ll need to ask a lawyer who’s familiar with copyright law.

1 Like

Okay. It seems like I can’t and won’t post it because I clearly don’t want any copyright problems.
It’s Minecraft by the way.

Mind that I’m only guessing, “code from a closed-source project” always smells like trouble unless you own it or have explicit permission. :wink:

But there are a lot of details to consider (e.g. the exact license terms, what exactly you’re doing with the code, copyright exceptions, …). If you’re not sure after reading the relevant license(s) what you need is legal advice, and I’m afraid a forum like this isn’t the right place for that. :sweat_smile: