Bug fixes in /server
This commit is contained in:
@ -231,7 +231,7 @@ func (s *Section) WriteTo(w io.Writer) (int64, error) {
|
||||
|
||||
func (s *Section) ReadFrom(r io.Reader) (int64, error) {
|
||||
return pk.Tuple{
|
||||
pk.Short(s.blockCount),
|
||||
(*pk.Short)(&s.blockCount),
|
||||
s.States,
|
||||
s.Biomes,
|
||||
}.ReadFrom(r)
|
||||
|
@ -301,7 +301,7 @@ func (g *globalPalette) id(v state) (int, bool) {
|
||||
}
|
||||
|
||||
func (g *globalPalette) value(i int) state {
|
||||
return g.value(i)
|
||||
return i
|
||||
}
|
||||
|
||||
func (g *globalPalette) ReadFrom(_ io.Reader) (int64, error) {
|
||||
|
@ -31,7 +31,6 @@ type KeepAlive struct {
|
||||
// We don't do that here for security reason.
|
||||
keepAliveID int64
|
||||
|
||||
//onPlayerExpire func(p *Player)
|
||||
updatePlayerDelay func(p *Player, delay time.Duration)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user