Update Forge to MC 1.21

This commit is contained in:
Luck 2024-06-16 10:45:42 +01:00
parent f984ebbb46
commit d748817351
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
5 changed files with 15 additions and 5 deletions

View File

@ -64,6 +64,16 @@ subprojects {
} }
repositories { repositories {
// Fix issue with lwjgl-freetype not being found on macOS / ForgeGradle issue
//
// Could not resolve all files for configuration ':_compileJava_1'.
// Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3).
maven {
url "https://libraries.minecraft.net"
content {
includeModule("org.lwjgl", "lwjgl-freetype")
}
}
mavenCentral() mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }

View File

@ -41,7 +41,7 @@ public interface UserCapability {
/** /**
* The identifier used for the capability * The identifier used for the capability
*/ */
ResourceLocation IDENTIFIER = new ResourceLocation("luckperms", "user"); ResourceLocation IDENTIFIER = ResourceLocation.fromNamespaceAndPath("luckperms", "user");
/** /**
* The capability instance. * The capability instance.

View File

@ -1,2 +1,2 @@
minecraftVersion=1.20.6 minecraftVersion=1.21
forgeVersion=50.0.9 forgeVersion=51.0.8

View File

@ -45,7 +45,7 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
public class PluginMessageMessenger extends AbstractPluginMessageMessenger implements Messenger { public class PluginMessageMessenger extends AbstractPluginMessageMessenger implements Messenger {
private static final ResourceLocation CHANNEL_ID = new ResourceLocation(AbstractPluginMessageMessenger.CHANNEL); private static final ResourceLocation CHANNEL_ID = ResourceLocation.parse(AbstractPluginMessageMessenger.CHANNEL);
private static final EventNetworkChannel CHANNEL = ChannelBuilder.named(CHANNEL_ID).eventNetworkChannel(); private static final EventNetworkChannel CHANNEL = ChannelBuilder.named(CHANNEL_ID).eventNetworkChannel();
private final LPForgePlugin plugin; private final LPForgePlugin plugin;

View File

@ -52,7 +52,7 @@ import java.util.Set;
import java.util.UUID; import java.util.UUID;
public class ForgePermissionHandler implements IPermissionHandler { public class ForgePermissionHandler implements IPermissionHandler {
public static final ResourceLocation IDENTIFIER = new ResourceLocation(LPForgeBootstrap.ID, "permission_handler"); public static final ResourceLocation IDENTIFIER = ResourceLocation.fromNamespaceAndPath(LPForgeBootstrap.ID, "permission_handler");
private final LPForgePlugin plugin; private final LPForgePlugin plugin;
private final Set<PermissionNode<?>> permissionNodes; private final Set<PermissionNode<?>> permissionNodes;