This commit is contained in:
xzb 2023-10-16 11:22:25 +08:00
parent c986ea599c
commit d9928acd11

View File

@ -136,7 +136,7 @@ func GetMapAllSignalState(sim *VerifySimulation, mapId int32) []*state.SignalSta
func handlerSignalState(w ecs.World, uid string) *state.SignalState {
entry, ok := entity.GetEntityByUid(w, uid)
if !ok {
fmt.Printf("id=%s的信号机不存在", uid)
//fmt.Printf("id=%s的信号机不存在", uid)
return nil
}
if !entry.HasComponent(component.SignalLightsType) { //信号机灯列表