Update to Minecraft 1.21.3

This commit is contained in:
Luck 2024-10-26 10:07:03 +01:00
parent 8973abd7f1
commit 8d65693d9a
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
6 changed files with 12 additions and 12 deletions

View File

@ -13,9 +13,9 @@ repositories {
dependencies { dependencies {
// https://modmuss50.me/fabric.html // https://modmuss50.me/fabric.html
minecraft 'com.mojang:minecraft:1.21.1' minecraft 'com.mojang:minecraft:1.21.3'
mappings 'net.fabricmc:yarn:1.21.1+build.3:v2' mappings 'net.fabricmc:yarn:1.21.3+build.2:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.11' modImplementation 'net.fabricmc:fabric-loader:0.16.7'
Set<String> apiModules = [ Set<String> apiModules = [
'fabric-api-base', 'fabric-api-base',
@ -26,10 +26,10 @@ dependencies {
] ]
apiModules.forEach { apiModules.forEach {
modImplementation(fabricApi.module(it, '0.102.1+1.21.1')) modImplementation(fabricApi.module(it, '0.106.1+1.21.3'))
} }
include(modImplementation('me.lucko:fabric-permissions-api:0.3.1')) include(modImplementation('me.lucko:fabric-permissions-api:0.3.2'))
implementation project(':common') implementation project(':common')
} }

View File

@ -1,2 +1,2 @@
minecraftVersion=1.21.1 minecraftVersion=1.21.3
forgeVersion=52.0.2 forgeVersion=53.0.0

View File

@ -100,7 +100,7 @@ public class ForgePlayerCalculator implements ContextCalculator<ServerPlayer> {
MinecraftServer server = this.plugin.getBootstrap().getServer().orElse(null); MinecraftServer server = this.plugin.getBootstrap().getServer().orElse(null);
if (this.dimensionType && server != null) { if (this.dimensionType && server != null) {
server.registryAccess().registry(Registries.DIMENSION_TYPE).ifPresent(registry -> { server.registryAccess().lookup(Registries.DIMENSION_TYPE).ifPresent(registry -> {
for (ResourceLocation resourceLocation : registry.keySet()) { for (ResourceLocation resourceLocation : registry.keySet()) {
builder.add(DefaultContextKeys.DIMENSION_TYPE_KEY, getContextKey(resourceLocation)); builder.add(DefaultContextKeys.DIMENSION_TYPE_KEY, getContextKey(resourceLocation));
} }

View File

@ -1,7 +1,7 @@
[versions] [versions]
shadow = "8.3.0" shadow = "8.3.0"
blossom = "1.3.1" blossom = "1.3.1"
moddevgradle = "1.0.17" moddevgradle = "1.0.21"
forgegradle = "[6.0,6.2)" forgegradle = "[6.0,6.2)"
loom = "1.7-SNAPSHOT" loom = "1.7-SNAPSHOT"
licenser = "0.6.1" licenser = "0.6.1"

View File

@ -1,2 +1,2 @@
minecraftVersion=1.21.1 minecraftVersion=1.21.3
neoForgeVersion=21.1.8 neoForgeVersion=21.3.3-beta

View File

@ -100,7 +100,7 @@ public class NeoForgePlayerCalculator implements ContextCalculator<ServerPlayer>
MinecraftServer server = this.plugin.getBootstrap().getServer().orElse(null); MinecraftServer server = this.plugin.getBootstrap().getServer().orElse(null);
if (this.dimensionType && server != null) { if (this.dimensionType && server != null) {
server.registryAccess().registry(Registries.DIMENSION_TYPE).ifPresent(registry -> { server.registryAccess().lookup(Registries.DIMENSION_TYPE).ifPresent(registry -> {
for (ResourceLocation resourceLocation : registry.keySet()) { for (ResourceLocation resourceLocation : registry.keySet()) {
builder.add(DefaultContextKeys.DIMENSION_TYPE_KEY, getContextKey(resourceLocation)); builder.add(DefaultContextKeys.DIMENSION_TYPE_KEY, getContextKey(resourceLocation));
} }