This commit is contained in:
parent
a7cfff821c
commit
fd3d52e575
2 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ public class TextCommands {
|
|||
});
|
||||
|
||||
|
||||
commands.put("perm_code",(args, networkIdentity, channelHandlerContext) -> {
|
||||
commands.put("perm_code",(args, networkIdentity, channeleHandlerContext) -> {
|
||||
Account account = ServerSingletons.getAccount(networkIdentity);
|
||||
if (args.length==1)
|
||||
Permissions.generate_new_code();
|
||||
|
|
|
@ -37,7 +37,7 @@ public class BlockPlaceMixin {
|
|||
if (targetBlockState instanceof BlockStateMissing)
|
||||
ci.cancel();
|
||||
}
|
||||
if (identity.getSide() != NetworkSide.CLIENT && ci.isCancelled()) {
|
||||
if (identity.getSide() != NetworkSide.CLIENT && !ci.isCancelled()) {
|
||||
Account account = ServerSingletons.getAccount(identity);
|
||||
if (!Permissions.has_user_special_perm(account.getUniqueId()) && !can_edit_block(blockPos,"place",account.getUniqueId())) {
|
||||
ci.cancel();
|
||||
|
|
Loading…
Reference in a new issue