Skip to content

Commit 2fb9ab2

Browse files
committed
Update to 1.21.8
1 parent 64dc3e8 commit 2fb9ab2

File tree

10 files changed

+30
-24
lines changed

10 files changed

+30
-24
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.10-SNAPSHOT'
2+
id 'fabric-loom' version '1.11-SNAPSHOT'
33
id 'maven-publish'
44
}
55

@@ -22,7 +22,7 @@ dependencies {
2222

2323
modImplementation "net.fabricmc.fabric-api:fabric-api:$fabric_version"
2424

25-
modImplementation(include('me.lucko:fabric-permissions-api:0.3.1'))
25+
modImplementation(include("me.lucko:fabric-permissions-api:$permission_api_version"))
2626
modImplementation(include("xyz.nucleoid:plasmid:$plasmid_version"))
2727
}
2828

changelog/1.2.0+1.21.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Updated to 1.21.8 for ModFest: Toybox

gradle.properties

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

4-
minecraft_version=1.21.1
5-
yarn_mappings=1.21.1+build.3
6-
loader_version=0.16.10
4+
minecraft_version=1.21.8
5+
yarn_mappings=1.21.8+build.1
6+
loader_version=0.17.2
77

8-
mod_version=1.1.1
9-
maven_group=io.github.mattidragon.demobox
8+
mod_version=1.2.0
9+
maven_group=dev.mattidragon
1010
archives_base_name=DemoBox
1111

12-
fabric_version=0.115.1+1.21.1
13-
plasmid_version=0.6.3-SNAPSHOT+1.21.1
12+
fabric_version=0.132.0+1.21.8
13+
plasmid_version=0.6.5+1.21.7
14+
permission_api_version=0.4.0

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

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.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
118118

119119

120120
# Determine the Java command to use to start the JVM.
@@ -205,15 +205,15 @@ fi
205205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206206

207207
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209209
# and any embedded shellness will be escaped.
210210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211211
# treated as '${Hostname}' itself on the command line.
212212

213213
set -- \
214214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215215
-classpath "$CLASSPATH" \
216-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217217
"$@"
218218

219219
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73+
set CLASSPATH=
7474

7575

7676
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
77+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7878

7979
:end
8080
@rem End local scope for the variables with windows NT shell

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
import com.mojang.serialization.codecs.RecordCodecBuilder;
55
import net.minecraft.block.Blocks;
66
import net.minecraft.registry.DynamicRegistryManager;
7-
import net.minecraft.registry.RegistryKeys;
87
import net.minecraft.registry.entry.RegistryEntry;
98
import net.minecraft.registry.entry.RegistryEntryList;
109
import net.minecraft.server.command.ServerCommandSource;
1110
import net.minecraft.server.network.ServerPlayerEntity;
1211
import net.minecraft.server.world.ServerWorld;
1312
import net.minecraft.structure.StructurePlacementData;
1413
import net.minecraft.text.Text;
15-
import net.minecraft.util.ActionResult;
1614
import net.minecraft.util.Formatting;
1715
import net.minecraft.util.Identifier;
1816
import net.minecraft.util.math.BlockPos;
@@ -34,6 +32,7 @@
3432
import xyz.nucleoid.plasmid.api.game.player.JoinAcceptorResult;
3533
import xyz.nucleoid.plasmid.api.game.player.JoinOffer;
3634
import xyz.nucleoid.plasmid.api.game.player.JoinOfferResult;
35+
import xyz.nucleoid.stimuli.event.EventResult;
3736
import xyz.nucleoid.stimuli.event.player.PlayerDeathEvent;
3837

3938
import java.util.Arrays;
@@ -72,7 +71,7 @@ private static GameOpenProcedure open(GameOpenContext<Settings> context) {
7271
activity.listen(PlayerDeathEvent.EVENT, (player, source) -> {
7372
instance.gameSpace.getPlayers().kick(player);
7473
player.sendMessage(Text.translatable("demobox.demo.death").formatted(Formatting.RED));
75-
return ActionResult.FAIL;
74+
return EventResult.DENY;
7675
});
7776
});
7877
}
@@ -88,8 +87,13 @@ private void setup() {
8887
var server = world.getServer();
8988
var manager = server.getCommandFunctionManager();
9089
for (var id : settings.functions) {
91-
manager.getFunction(id).ifPresentOrElse(function -> manager.execute(function, new ServerCommandSource(server, Vec3d.ZERO, Vec2f.ZERO, world, 2, "DemoBox Setup", Text.literal("DemoBox Setup"), server, null).withSilent()),
92-
() -> DemoBox.LOGGER.warn("Missing function: {}", id));
90+
manager.getFunction(id).ifPresentOrElse(
91+
function -> manager.execute(
92+
function,
93+
new ServerCommandSource(server, Vec3d.ZERO, Vec2f.ZERO, world, 2, "DemoBox Setup", Text.literal("DemoBox Setup"), server, null).withSilent()
94+
),
95+
() -> DemoBox.LOGGER.warn("Missing function: {}", id)
96+
);
9397
}
9498
}
9599

@@ -126,7 +130,7 @@ private JoinAcceptorResult onPlayerAccepted(JoinAcceptor joinAcceptor) {
126130
private static RuntimeWorldConfig createWorldConfig(DynamicRegistryManager registryManager) {
127131
var worldConfig = new RuntimeWorldConfig();
128132
worldConfig.setFlat(true);
129-
var generatorConfig = new FlatChunkGeneratorConfig(Optional.of(RegistryEntryList.of()), registryManager.get(RegistryKeys.BIOME).entryOf(BiomeKeys.PLAINS), List.of());
133+
var generatorConfig = new FlatChunkGeneratorConfig(Optional.of(RegistryEntryList.of()), registryManager.getEntryOrThrow(BiomeKeys.PLAINS), List.of());
130134
generatorConfig.getLayers().add(new FlatChunkGeneratorLayer(1, Blocks.BARRIER));
131135
generatorConfig.updateLayerBlocks();
132136
worldConfig.setGenerator(new FlatChunkGenerator(generatorConfig));

src/main/resources/data/demobox/lang/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"command.demobox.open.fail": "Failed to open demo box",
33
"demobox.demo.join": "%s joined the demo",
44
"demobox.demo.leave": "%s left the game",
5-
"demobox.demo.death": "You have died in the demo and thus removed from it. You can open another one if your want to.",
5+
"demobox.demo.death": "You have died in the demo and have thus been removed from it. You can open another one if your want to continue.",
66
"gameType.demobox.demo_box": "Demo Box",
77

88
"demobox.info.1": "Welcome to the DemoBox!",

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"demobox.mixins.json"
2727
],
2828
"depends": {
29-
"fabricloader": ">=0.16.10",
29+
"fabricloader": ">=0.17.2",
3030
"fabric-api": "*",
31-
"minecraft": "1.21.1"
31+
"minecraft": "1.21.8"
3232
}
3333
}

0 commit comments

Comments
 (0)