Skip to content

Commit

Permalink
Update to 1.21.2-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD committed Oct 22, 2024
1 parent 2410c8a commit 0903d4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=24w40a
loader_version=0.16.5
minecraft_version=1.21.2-rc2
loader_version=0.16.7
# Mod Properties
mod_version=1.2.1
maven_group=me.drex
archives_base_name=fabric-essentials
# Dependencies
fabric_version=0.105.2+1.21.2
fabric_version=0.106.1+1.21.2
permission_api_version=0.3.1
sgui_version=1.6.0+1.21
placeholder_api_version=2.4.1+1.21
sgui_version=1.7.0+1.21.2
placeholder_api_version=2.5.0+1.21.2
player_data_api_version=0.6.0+1.21
common_protection_api_version=1.0.0
message_api_version=0.2.4-1.21
2 changes: 1 addition & 1 deletion src/main/java/me/drex/essentials/util/IdentifierUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static boolean check(CommandSourceStack src, String permission) {

public static boolean check(ServerPlayer player, String permission) {
try {
return Permissions.check(player, permission(permission), 2);
return Permissions.check(player.createCommandSourceStack(), permission(permission), 2);
} catch (Throwable ignored) {
// Fallback for datapack compatibility
return player.createCommandSourceStack().hasPermission(2);
Expand Down

0 comments on commit 0903d4a

Please sign in to comment.