MCPcopy Create free account
hub / github.com/TyphoonMC/TyphoonCore / HackServerbound

Method HackServerbound

protocol_hack.go:560–570  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

558}
559
560func (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
572func (player *Player) HackClientbound(id int, protocol Protocol) int {
573 //TODO refactor protocol hack

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected