Skip to content

Commit

Permalink
Initial 1.19 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nincodedo committed Jun 4, 2022
1 parent 48ff4ac commit 560d075
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish'
}

Expand Down
19 changes: 8 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.18-pre5
yarn_mappings=1.18-pre5+build.4
loader_version=0.12.5

# check these on https://fabricmc.net/use
minecraft_version=1.19-rc2
yarn_mappings=1.19-rc2+build.1
loader_version=0.14.6
# Mod Properties
mod_version = 2.0.0
maven_group = dev.nincodedo
archives_base_name = mc-server-description

mod_version=3.0.0
maven_group=dev.nincodedo
archives_base_name=mc-server-description
# Dependencies
fabric_version=0.42.8+1.18
fabric_version=0.55.1+1.19
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.minecraft.text.LiteralText;
import net.minecraft.text.Text;
import net.minecraft.world.World;
import org.jetbrains.annotations.NotNull;

Expand All @@ -29,7 +29,7 @@ public void onInitialize() {
+ "Weather: "
+ weatherStatus;

server.getServerMetadata().setDescription(new LiteralText(stringBuilder));
server.getServerMetadata().setDescription(Text.literal(stringBuilder));
}
}
});
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 @@ -6,7 +6,7 @@
"name": "MC Server Description",
"description": "Updates the server's MOTD with the day count, time of day, and weather.",
"authors": [
"Me!"
"Nincodedo"
],
"contact": {
"homepage": "https://twitter.com/nincodedo",
Expand All @@ -25,9 +25,9 @@
},

"depends": {
"fabricloader": ">=0.11.3",
"fabricloader": ">=0.14.6",
"fabric": "*",
"minecraft": ">=1.18.x",
"minecraft": ">=1.19.x",
"java": ">=17"
}
}

0 comments on commit 560d075

Please sign in to comment.