(id int)
| 558 | } |
| 559 | |
| 560 | func (player *Player) HackServerbound(id int) int { |
| 561 | _, ok := serverbound[player.protocol] |
| 562 | if ok { |
| 563 | if val, ok := serverbound[player.protocol][id]; ok { |
| 564 | return val |
| 565 | } else { |
| 566 | return id |
| 567 | } |
| 568 | } |
| 569 | return id |
| 570 | } |
| 571 | |
| 572 | func (player *Player) HackClientbound(id int, protocol Protocol) int { |
| 573 | //TODO refactor protocol hack |
no outgoing calls
no test coverage detected