Skip to content

Commit 69bcdb3

Browse files
authored
Small improvements (#2)
* Add more entries to .gitignore * Add .editorconfig * Improve README * Use tabs in decompiled MC source code to save disk space
1 parent 4d0d488 commit 69bcdb3

File tree

6 files changed

+62
-15
lines changed

6 files changed

+62
-15
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{yml,yaml,json,toml,md}]
12+
indent_size = 2
13+
14+
[*.bat]
15+
end_of_line = crlf

.gitignore

+35-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
1-
/artifact-store/
2-
/minecaft-repo/
3-
/.gradle/
4-
/.idea/
5-
/build/
1+
# GitCraft
2+
artifact-store/
3+
minecaft-repo/
4+
5+
# Gradle
6+
.gradle/
7+
build/
8+
bin/
9+
out/
10+
classes/
11+
12+
# IntelliJ Idea
13+
.idea/
14+
*.iml
15+
*.ipr
16+
*.iws
17+
18+
# Eclipse
19+
.eclipse/
20+
*.launch
21+
22+
# VS Code
23+
.vscode/
24+
25+
# Fleet
26+
.fleet/
27+
28+
# MacOS
29+
*.DS_Store
30+
31+
# Java
32+
hs_err_*.log
33+
replay_*.log
34+
*.hprof
35+
*.jfr

readme.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# GitCraft
2+
Generates a Git repository of decompiled Minecraft, starting from 1.14.4. For personal use only. Do not share or upload the resulting repository.
23

3-
Generates a git repository of decompiled MineCraft. For personal use only. Do not share or upload the repository.
4+
To get started, execute `./gradlew run` from the command line.
45

5-
Stores artifacts in the current working directory.
6+
Artifacts are stored in the current working directory:
7+
- Metadata, mappings and other temporary files go into `artifact-store`.
8+
- The generated Git repository with MC's source code goes into `minecraft-repo`.
69

710
Powered by:
8-
- Quiltflower
9-
- Fabric Loader
10-
- Mapping-io
11-
- TinyRemapper
12-
- Mojang's generous mappings files
11+
- [Quiltflower](https://github.com/QuiltMC/quiltflower)
12+
- [Fabric Loader](https://github.com/FabricMC/fabric-loader)
13+
- [Mapping-IO](https://github.com/FabricMC/mapping-io)
14+
- [Tiny Remapper](https://github.com/FabricMC/tiny-remapper)
15+
- Mojang's generous mapping files (Mojmap)

settings.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
rootProject.name = 'GitCraft'
2-

src/main/groovy/dex/mcgitmaker/Util.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Util {
2929
x.createNewFile()
3030
x.write(generator.toJson(data))
3131
}
32-
32+
3333
static def addLoaderVersion(McVersion mcVersion) {
3434
if (mcVersion.loaderVersion == null) {
3535
println 'Creating new semver version...'

src/main/groovy/dex/mcgitmaker/loom/Decompiler.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Decompiler {
2727
println 'Decompiler log output is suppressed!'
2828
Map<String, Object> options = new HashMap<>()
2929

30-
options.put(IFernflowerPreferences.INDENT_STRING, " ".repeat(4)); // space supremacy!
30+
options.put(IFernflowerPreferences.INDENT_STRING, "\t");
3131
options.put(IFernflowerPreferences.DECOMPILE_GENERIC_SIGNATURES, "1");
3232
options.put(IFernflowerPreferences.BYTECODE_SOURCE_MAPPING, "1");
3333
options.put(IFernflowerPreferences.REMOVE_SYNTHETIC, "1");

0 commit comments

Comments
 (0)