PatchworkMC / patchwork-api

An attempt to reimplement the Minecraft Forge API on Fabric
GNU Lesser General Public License v2.1
282 stars 48 forks source link

Gradle tries to run 12 instances of Minecraft at once #228

Closed BitBlitObviMormon closed 3 years ago

BitBlitObviMormon commented 3 years ago

I was trying to add support for SoundPhysics, but when I test it with "./gradlew build" followed by "./gradlew runClient" I get 12 Minecraft clients all starting up at once using up all of my computer's resources. The first time I ran this it froze forcing me to hard reset my computer. The second time worked all right so long as I quickly crashed 11 of the instances of Minecraft with Task Manager. I am using JDK 1.8.0.271 on a 64-bit Windows 10 computer. I am also using a clean git clone with no files changed as of yet on the latest commit (3ac24d3602a1f7ed214c003284205e6ebdbac5ea).

The stdout and stderr output from gradle: output.txt

ramidzkh commented 3 years ago

Try using ./gradlew :runClient so it doesn't invoke all of its subprojects

TheGlitch76 commented 3 years ago

This is a Loom "feature" in multiproject builds, ramid's solution is the way to do it. Alternatively, use the run configs in your IDE.