Fix ColorCommand

This commit is contained in:
2025-07-31 18:20:28 +02:00
parent 6a5507321e
commit 56680119e2
@@ -59,7 +59,7 @@ public class ColorCommand extends SWCommand {
return; return;
} }
Region region = Region.getRegion(p.getLocation()); Region region = Region.getRegion(p.getLocation());
if (region.getType().isGlobal()) { if (!region.getFlags().has(Flag.COLOR).isWritable()) {
BauSystem.MESSAGE.send("REGION_COLOR_NO_REGION", p); BauSystem.MESSAGE.send("REGION_COLOR_NO_REGION", p);
return; return;
} }