Skip to content

Commit

Permalink
fix onJoin operation, remove onClusterChange location setting
Browse files Browse the repository at this point in the history
  • Loading branch information
phendryx committed Oct 23, 2023
1 parent fe0cbb1 commit a76d272
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions client/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ func decodeRequest(params map[uint8]interface{}) (operation operation, err error
switch OperationType(code) {
case opGetGameServerByCluster:
operation = &operationGetGameServerByCluster{}
case opChangeCluster:
operation = &operationGetGameServerByCluster{}
case opAuctionGetOffers:
operation = &operationAuctionGetOffers{}
case opAuctionGetItemAverageStats:
Expand Down Expand Up @@ -53,8 +51,6 @@ func decodeResponse(params map[uint8]interface{}) (operation operation, err erro
switch OperationType(code) {
case opJoin:
operation = &operationJoinResponse{}
case opChangeCluster:
operation = &operationGetGameServerByCluster{}
case opAuctionGetOffers:
operation = &operationAuctionGetOffersResponse{}
case opAuctionGetRequests:
Expand Down
3 changes: 1 addition & 2 deletions client/operation_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ type operationJoinResponse struct {
CharacterID lib.CharacterID `mapstructure:"1"`
CharacterName string `mapstructure:"2"`
Location string `mapstructure:"8"`
GuildID lib.CharacterID `mapstructure:"47"`
GuildName string `mapstructure:"52"`
GuildName string `mapstructure:"56"`
}

//CharacterPartsJSON string `mapstructure:"6"`
Expand Down

0 comments on commit a76d272

Please sign in to comment.