allow /ctr to reinforce double chests

This commit is contained in:
okx-code
2026-04-14 22:55:11 +01:00
parent 7fbdab7176
commit 38937410fb

View File

@@ -67,7 +67,7 @@ public class ReinforcingState extends AbstractPlayerState {
type = Citadel.getInstance().getReinforcementTypeManager().getByItemStack(e.getItem(), player.getWorld().getName());
}
Block block = ReinforcementLogic.getResponsibleBlock(e.getClickedBlock());
Reinforcement rein = ReinforcementLogic.getReinforcementProtecting(block);
Reinforcement rein = ReinforcementLogic.getReinforcementAt(block.getLocation());
// if there is no existing reinforcement and no material to create one, nothing to do
// if reinforcement exists, check if player has permission to edit it
if (rein != null && !rein.hasPermission(player, CitadelPermissionHandler.getBypass())) {