Skip to content

Commit 5fd41fe

Browse files
Update to 1.20.4 (#1)
* Make gradlew executable * Port to 1.20.4 * Update loom/gradle * Added changelog, tweaked version number and switched to mixin extras from loader --------- Co-authored-by: MattiDragon <[email protected]>
1 parent 40cefae commit 5fd41fe

File tree

10 files changed

+15
-20
lines changed

10 files changed

+15
-20
lines changed

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
2-
id 'fabric-loom' version '1.3-SNAPSHOT'
2+
id 'fabric-loom' version '1.4-SNAPSHOT'
33
id 'io.github.juuxel.loom-quiltflower' version '1.10.0'
44
id 'maven-publish'
55
}
66

7-
version = project.mod_version
7+
version = project.mod_version + "+mc.$minecraft_version"
88
group = project.maven_group
99
base.archivesName = project.archives_base_name
1010

@@ -25,8 +25,6 @@ dependencies {
2525

2626
modImplementation(include('me.lucko:fabric-permissions-api:0.2-SNAPSHOT'))
2727
modImplementation(include("xyz.nucleoid:plasmid:$plasmid_version"))
28-
modImplementation(include("com.github.llamalad7.mixinextras:mixinextras-fabric:$mixinextras_version"))
29-
annotationProcessor(clientAnnotationProcessor("com.github.llamalad7.mixinextras:mixinextras-fabric:$mixinextras_version"))
3028
}
3129

3230
loom {

changelog/1.0.0+1.20.4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated to 1.20.4

changelog/1.0.0-beta.1+1.20.1.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/1.0.0-beta.2+1.20.1.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/1.0.0-beta.3+1.20.1.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Done to increase the memory available to gradle.
22
org.gradle.jvmargs=-Xmx1G
33

4-
minecraft_version=1.20.1
5-
yarn_mappings=1.20.1+build.9
6-
loader_version=0.14.21
4+
minecraft_version=1.20.4
5+
yarn_mappings=1.20.4+build.3
6+
loader_version=0.15.2
77

8-
mod_version=1.0.0-beta.3
8+
mod_version=1.0.0
99
maven_group=io.github.mattidragon.demobox
1010
archives_base_name=DemoBox
1111

12-
fabric_version=0.84.0+1.20.1
13-
plasmid_version=0.5+1.20.1-SNAPSHOT
12+
fabric_version=0.91.2+1.20.4
13+
plasmid_version=0.5.102-SNAPSHOT+1.20.4
1414
mixinextras_version=0.2.0-beta.9
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

gradlew

100644100755
File mode changed.

src/main/java/io/github/mattidragon/demobox/DemoBoxCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ private static int leaveGame(CommandContext<ServerCommandSource> context) throws
7474
return Command.SINGLE_SUCCESS;
7575
}
7676

77-
private static int execute(ServerCommandSource source, Identifier structure, Vec3d pos, Collection<CommandFunction> functions) throws CommandSyntaxException {
77+
private static int execute(ServerCommandSource source, Identifier structure, Vec3d pos, Collection<CommandFunction<ServerCommandSource>> functions) throws CommandSyntaxException {
7878
var player = source.getPlayerOrThrow();
7979

80-
DemoBoxGame.open(new DemoBoxGame.Settings(structure, pos, functions.stream().map(CommandFunction::getId).toList()))
80+
DemoBoxGame.open(new DemoBoxGame.Settings(structure, pos, functions.stream().map(CommandFunction::id).toList()))
8181
.thenAcceptAsync(gameSpace -> {
8282
var space = GameSpaceManager.get().byPlayer(player);
8383
if (space != null) space.getPlayers().kick(player);

src/main/resources/fabric.mod.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"demobox.mixins.json"
2727
],
2828
"depends": {
29-
"fabricloader": ">=0.14.21",
30-
"fabric": "*",
31-
"minecraft": "~1.20.1"
29+
"fabricloader": ">=0.15.2",
30+
"fabric-api": "*",
31+
"minecraft": "~1.20.4"
3232
}
3333
}

0 commit comments

Comments
 (0)