mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Cleanup PermissionChecker
Former-commit-id: e47258fa7e03f94a4feb74b637f8af6d00141254 [formerly 581f479b74708162ff164e214a816538c44af8cf] Former-commit-id: ea842b6a32972ab29974856a98b7104c57c21d75
This commit is contained in:
1 parent
6a07579900
commit
3368f5ebcc
1 file changed
+1
-2
@@ -56,8 +56,7 @@ public class PermissionChecker {
|
||||
return false;
|
||||
|
||||
if (beMainHand instanceof BlockPlaceEvent)
|
||||
if (!((BlockPlaceEvent) beMainHand).canBuild())
|
||||
return false;
|
||||
return ((BlockPlaceEvent) beMainHand).canBuild();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user