Includes Patches from:
Applying Patches
./gradlew applyPatchesBuild a Jar
./gradlew createMojmapBundlerJarSource: Paper/CONTRIBUTING.md
This method works by temporarily resetting your HEAD to the desired commit to
edit it using git rebase.
❗ While in the middle of an edit, you will not be able to compile unless you also reset the opposing module(s) to a related commit. In the API's case, you must reset the Server, and reset the API if you're editing the Server. Note also that either module may not compile when doing so. This is not ideal nor intentional, but it happens. Feel free to fix this in a PR to us!
- If you have changes you are working on, type
git stashto store them for later;- You can type
git stash popto get them back at any point.
- You can type
- Type
git rebase -i base;- It should show something like this in the text editor you get.
- If your editor does not have a "menu" at the bottom, you're using
vim.
If you don't know how to usevimand don't want to learn, enter:q!and press enter. Before redoing this step, doexport EDITOR=nanofor an easier editor to use.
- Replace
pickwitheditfor the commit/patch you want to modify, and "save" the changes;- Only do this for one commit at a time.
- Make the changes you want to make to the patch;
- Type
git add .to add your changes; - Type
git commit --amendto commit;- Make sure to add
--amendor else a new patch will be created. - You can also modify the commit message and author here.
- Make sure to add
- Type
git rebase --continueto finish rebasing; - Type
./gradlew rebuildPatchesin the root directory;- This will modify the appropriate patches based on your commits.
- PR your modified patch file(s) back to this repository.