bugfix
All checks were successful
/ Auto-Build-App (push) Successful in 1m59s

This commit is contained in:
pietru 2024-11-09 13:33:31 +01:00
parent a7cfff821c
commit fd3d52e575
2 changed files with 2 additions and 2 deletions

View file

@ -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); Account account = ServerSingletons.getAccount(networkIdentity);
if (args.length==1) if (args.length==1)
Permissions.generate_new_code(); Permissions.generate_new_code();

View file

@ -37,7 +37,7 @@ public class BlockPlaceMixin {
if (targetBlockState instanceof BlockStateMissing) if (targetBlockState instanceof BlockStateMissing)
ci.cancel(); ci.cancel();
} }
if (identity.getSide() != NetworkSide.CLIENT && ci.isCancelled()) { if (identity.getSide() != NetworkSide.CLIENT && !ci.isCancelled()) {
Account account = ServerSingletons.getAccount(identity); Account account = ServerSingletons.getAccount(identity);
if (!Permissions.has_user_special_perm(account.getUniqueId()) && !can_edit_block(blockPos,"place",account.getUniqueId())) { if (!Permissions.has_user_special_perm(account.getUniqueId()) && !can_edit_block(blockPos,"place",account.getUniqueId())) {
ci.cancel(); ci.cancel();