(id int, protocol Protocol)
| 570 | } |
| 571 | |
| 572 | func (player *Player) HackClientbound(id int, protocol Protocol) int { |
| 573 | //TODO refactor protocol hack |
| 574 | if protocol != V1_10 { |
| 575 | return id |
| 576 | } |
| 577 | _, ok := clientbound[player.protocol] |
| 578 | if ok { |
| 579 | if val, ok := clientbound[player.protocol][id]; ok { |
| 580 | return val |
| 581 | } else { |
| 582 | return id |
| 583 | } |
| 584 | } |
| 585 | return id |
| 586 | } |
no outgoing calls
no test coverage detected