SteamWar/BauSystem2.0
Archiviert
12
0

Fix TestblockCommand with public schem

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-07-05 12:13:21 +02:00
Ursprung 998d43d6e3
Commit 83c31f9297

Datei anzeigen

@ -91,8 +91,11 @@ public class TestblockCommand extends SWCommand {
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) { if (schem == null) {
BauSystem.MESSAGE.send("REGION_TB_NO_SCHEM", p); schem = Schematic.getSchemFromDB(s, 0);
return; if (schem == null) {
BauSystem.MESSAGE.send("REGION_TB_NO_SCHEM", p);
return;
}
} }
try { try {
region.reset(schem, RegionType.TESTBLOCK, regionExtensionType); region.reset(schem, RegionType.TESTBLOCK, regionExtensionType);