Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
e3559cc07a
Commit
0f917ac4f6
@ -28,7 +28,9 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class Schematic {
|
public class Schematic {
|
||||||
@ -61,6 +63,11 @@ public class Schematic {
|
|||||||
SchematicNode node = SchematicNode.getSchematicNode(schemOwner, schemName, 0);
|
SchematicNode node = SchematicNode.getSchematicNode(schemOwner, schemName, 0);
|
||||||
if(node != null) {
|
if(node != null) {
|
||||||
return new Schematic(node);
|
return new Schematic(node);
|
||||||
|
} else {
|
||||||
|
Optional<SchematicNode> n = SchematicNode.getSchematicsAccessibleByUser(schemOwner, 0).stream().filter(node1 -> node1.getName().equals(schemName)).findAny();
|
||||||
|
if(n.isPresent()) {
|
||||||
|
return new Schematic(n.get());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren