Fix TestblockCommand with public schem
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
998d43d6e3
Commit
83c31f9297
@ -90,10 +90,13 @@ public class TestblockCommand extends SWCommand {
|
|||||||
Region region = regionCheck(p);
|
Region region = regionCheck(p);
|
||||||
if (region == null) return;
|
if (region == null) return;
|
||||||
Schematic schem = Schematic.getSchemFromDB(s, p.getUniqueId());
|
Schematic schem = Schematic.getSchemFromDB(s, p.getUniqueId());
|
||||||
|
if (schem == null) {
|
||||||
|
schem = Schematic.getSchemFromDB(s, 0);
|
||||||
if (schem == null) {
|
if (schem == null) {
|
||||||
BauSystem.MESSAGE.send("REGION_TB_NO_SCHEM", p);
|
BauSystem.MESSAGE.send("REGION_TB_NO_SCHEM", p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
region.reset(schem, RegionType.TESTBLOCK, regionExtensionType);
|
region.reset(schem, RegionType.TESTBLOCK, regionExtensionType);
|
||||||
RegionUtils.message(region, "REGION_TB_DONE");
|
RegionUtils.message(region, "REGION_TB_DONE");
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren