mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-03 03:12:46 +02:00
Update to Minecraft 1.21.5
This commit is contained in:
@@ -13,9 +13,9 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
// https://modmuss50.me/fabric.html
|
||||
minecraft 'com.mojang:minecraft:1.21.4'
|
||||
mappings 'net.fabricmc:yarn:1.21.4+build.1:v2'
|
||||
modImplementation 'net.fabricmc:fabric-loader:0.16.9'
|
||||
minecraft 'com.mojang:minecraft:1.21.5'
|
||||
mappings 'net.fabricmc:yarn:1.21.5+build.1:v2'
|
||||
modImplementation 'net.fabricmc:fabric-loader:0.16.10'
|
||||
|
||||
Set<String> apiModules = [
|
||||
'fabric-api-base',
|
||||
@@ -26,7 +26,7 @@ dependencies {
|
||||
]
|
||||
|
||||
apiModules.forEach {
|
||||
modImplementation(fabricApi.module(it, '0.111.0+1.21.4'))
|
||||
modImplementation(fabricApi.module(it, '0.119.0+1.21.5'))
|
||||
}
|
||||
|
||||
include(modImplementation('me.lucko:fabric-permissions-api:0.3.3'))
|
||||
|
@@ -73,8 +73,7 @@ public class FabricPlayerCalculator implements ContextCalculator<ServerPlayerEnt
|
||||
@Override
|
||||
public void calculate(@NonNull ServerPlayerEntity target, @NonNull ContextConsumer consumer) {
|
||||
GameMode mode = target.interactionManager.getGameMode();
|
||||
final int GAME_MODE_NOT_SET = -1; // GameMode.NOT_SET with ID -1 was removed in 1.17
|
||||
if (this.gamemode && mode != null && mode.getId() != GAME_MODE_NOT_SET) {
|
||||
if (this.gamemode && mode != null) {
|
||||
consumer.accept(DefaultContextKeys.GAMEMODE_KEY, GAMEMODE_NAMER.name(mode));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user