Skip to content

Commit 772402c

Browse files
committed
fix: Update canInteract method to check for 'use' permission instead of 'build'
1 parent 48067b8 commit 772402c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • core/src/main/java/github/nighter/smartspawner/hooks/protections/api

core/src/main/java/github/nighter/smartspawner/hooks/protections/api/Residence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static boolean canPlayerBreakBlock(@NotNull Player player, @NotNull Locat
1414
}
1515

1616
public static boolean canInteract(@NotNull Player player, @NotNull Location location) {
17-
return check(player, location, "build");
17+
return check(player, location, "use");
1818
}
1919

2020
public static boolean canStack(@NotNull Player player, @NotNull Location location) {

0 commit comments

Comments
 (0)