Fix TestblockCommand permission check for schematic

This commit is contained in:
2025-10-17 22:23:11 +02:00
parent d154fe90a9
commit bcdda35b44
@@ -105,6 +105,10 @@ public class TestblockCommand extends SWCommand {
case 12258:
if (node == null) {
node = region.getRegionData().getTestblockSchematic();
if (node != null && !node.accessibleByUser(SteamwarUser.get(bauServer.getOwner()))) {
node = null;
region.getRegionData().setTestblockSchematic(null);
}
} else {
region.getRegionData().setTestblockSchematic(node);
}