修复订单bug
This commit is contained in:
parent
67cff6a431
commit
738015e1d3
@ -1301,7 +1301,7 @@ func (p *Player) FormatPetOrderItem(Items []*item.Item) []*item.Item {
|
||||
feed := PlayroomMod.GetPhysiology(playroom.PHYSIOLOGY_TYPE_FEED)
|
||||
feedItem := p.GetPlayroomFood()
|
||||
feedPlo := playroomCfg.GetItemAddPhysiology(feedItem)
|
||||
if feed.Num+feedPlo <= 1 {
|
||||
if feed != nil && feed.Num+feedPlo <= 1 {
|
||||
RandList := OrderItem[1]
|
||||
NewItems = append(NewItems, item.NewItem(GoUtil.RandSlice(RandList), 1))
|
||||
continue
|
||||
|
||||
Loading…
Reference in New Issue
Block a user