mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-07 22:27:30 +08:00
优化蓝图错误判断
This commit is contained in:
@@ -203,7 +203,7 @@ func (bm *Blueprint) TriggerEvent(graphID int64, eventID int64, args ...any) err
|
||||
func (bm *Blueprint) Do(graphID int64, entranceID int64, args ...any) (Port_Array, error) {
|
||||
graph := bm.mapGraph[graphID]
|
||||
if graph == nil {
|
||||
return nil, fmt.Errorf("can not find graph:%d", graphID)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
clone := graph.Clone()
|
||||
|
||||
Reference in New Issue
Block a user