Skip to content

Commit

Permalink
Update mod to Minecraft 1.20.1 (#10)
Browse files Browse the repository at this point in the history
* Update mod to Minecraft 1.20.1

* Bump version to 1.0.3
  • Loading branch information
haykam821 authored Jul 16, 2023
1 parent 3839237 commit e39ede4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
10 changes: 3 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.1.+'
id 'maven-publish'
}

Expand All @@ -22,12 +22,8 @@ dependencies {

modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation 'xyz.nucleoid:plasmid:0.5+1.19.3-SNAPSHOT'
modImplementation include('xyz.nucleoid:more-codecs:0.3.0+1.19.3')

modRuntimeOnly ("supercoder79:databreaker:0.2.10") {
exclude module : "fabric-loader"
}
modImplementation 'xyz.nucleoid:plasmid:0.5+1.20.1-SNAPSHOT'
modImplementation include('xyz.nucleoid:more-codecs:0.3.2+1.20')
}

processResources {
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.1
loader_version=0.14.12
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.9
loader_version=0.14.21

# Dependencies
fabric_version=0.68.1+1.19.3
fabric_version=0.85.0+1.20.1

# Mod Properties
mod_version=1.0.2
mod_version=1.0.3
maven_group=xyz.nucleoid
archives_base_name=game-parties
6 changes: 2 additions & 4 deletions src/main/java/xyz/nucleoid/parties/PartyCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.minecraft.command.argument.GameProfileArgumentType;
import net.minecraft.command.argument.UuidArgumentType;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.MutableText;
import net.minecraft.util.Formatting;
import xyz.nucleoid.plasmid.util.PlayerRef;

Expand Down Expand Up @@ -55,8 +54,7 @@ private static int invitePlayer(CommandContext<ServerCommandSource> ctx) throws
var partyManager = PartyManager.get(source.getServer());
var result = partyManager.invitePlayer(PlayerRef.of(owner), PlayerRef.of(player));
if (result.isOk()) {
MutableText message = PartyTexts.invitedSender(player);
source.sendFeedback(message.formatted(Formatting.GOLD), false);
source.sendFeedback(() -> PartyTexts.invitedSender(player).formatted(Formatting.GOLD), false);

var notification = PartyTexts.invitedReceiver(owner, result.party().getUuid())
.formatted(Formatting.GOLD);
Expand Down Expand Up @@ -107,7 +105,7 @@ private static int transferToPlayer(CommandContext<ServerCommandSource> ctx) thr
var result = partyManager.transferParty(PlayerRef.of(oldOwner), PlayerRef.of(newOwner));
if (result.isOk()) {
source.sendFeedback(
PartyTexts.transferredSender(newOwner).formatted(Formatting.GOLD),
() -> PartyTexts.transferredSender(newOwner).formatted(Formatting.GOLD),
false
);

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"depends": {
"fabricloader": ">=0.9.1",
"fabric": "*",
"minecraft": "1.19.x",
"minecraft": "1.20.x",
"plasmid": "0.5.x",
"java": ">=17"
}
Expand Down

0 comments on commit e39ede4

Please sign in to comment.