Skip to content

Commit

Permalink
v1.18.1-1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MJaroslav committed Feb 14, 2022
1 parent 76d275c commit 39d8d76
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ build
# Other
logs/
log/
gradle.properties
run/
run/
*.hprof
java_pid*/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ See LICENSE
Anonymous request from [2ch.hk/mc/](https://2ch.hk/mc/)

## Links
[curseforge.com](https://www.curseforge.com/minecraft/mc-mods/bookstealer)
[curseforge.com](https://www.curseforge.com/minecraft/mc-mods/bookstealer) \
[forum.mcmodding.ru](https://forum.mcmodding.ru/resources/bookstealer.275/)
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'idea'
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'fabric-loom' version '0.11-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -20,7 +20,8 @@ repositories {
}

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
sourceCompatibility = compileJava.sourceCompatibility = '1.8'
targetCompatibility = compileJava.targetCompatibility = '17'

version = "${buildprop.game_version}-${modprop.version}"
group = modprop.group
Expand Down
8 changes: 4 additions & 4 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

# Game
# Minecraft
game_version=1.16.5
game_version=1.18.1
# Fabric Loader
fabric_loader_version=0.12.12
# Launch directory
run_dir=run
# Game mappings
yarn_mappings=1.16.5+build.10
yarn_mappings=1.18.1+build.22
# Cloth Config
cloth_version=4.13.49
cloth_version=6.2.57
# Mod Menu
menu_version=1.16.22
menu_version=3.0.1

# Other libs version
# Project Lombok
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.jvmargs=-Xmx3072M
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected BookEditScreenMixin(Text title) {

@Inject(method = "init", at = @At("TAIL"))
private void init(CallbackInfo ci) {
this.addButton(new ButtonWidget(this.width / 2 - 100, 220, 200, 20,
this.addDrawableChild(new ButtonWidget(this.width / 2 - 100, 220, 200, 20,
ModUtils.getButtonTranslatedText(), new SaveAction(this, itemStack)));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected BookScreenMixin(Text title) {

@Inject(method = "init", at = @At("TAIL"))
public void init(CallbackInfo ci) {
this.addButton(new ButtonWidget(this.width / 2 - 100, 220, 200, 20,
this.addDrawableChild(new ButtonWidget(this.width / 2 - 100, 220, 200, 20,
ModUtils.getButtonTranslatedText(), new SaveAction(this, ModUtils.getBookStackFromHands())));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private Path getBookPath(@NotNull String author, @NotNull String title) {
@Nullable
public Path saveBook(@Nullable ItemStack book) throws Exception {
if (book == null) return null;
val nbt = book.getTag();
val nbt = book.getNbt();
if (nbt == null) return null;
val author = !nbt.contains("author", 8) ? "Unknown" : nbt.getString("author");
val title = !nbt.contains("title", 8) ? "Unknown" : nbt.getString("title");
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
],
"depends": {
"fabricloader": ">=0.12.12",
"minecraft": "1.16.x",
"cloth-config2": ">=4.13.49"
"minecraft": "1.18.x",
"cloth-config2": ">=6.1.48"
},
"suggests": {
"modmenu": ">=1.16.22"
"modmenu": ">=3.0.1"
}
}

0 comments on commit 39d8d76

Please sign in to comment.