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

Method HackClientbound

protocol_hack.go:572–586  ·  view source on GitHub ↗
(id int, protocol Protocol)

Source from the content-addressed store, hash-verified

570}
571
572func (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}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected