test
This commit is contained in:
		
							parent
							
								
									f60f0b6c59
								
							
						
					
					
						commit
						8d5aec4114
					
				@ -1,6 +1,7 @@
 | 
				
			|||||||
package main
 | 
					package main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
 | 
						"bufio"
 | 
				
			||||||
	"bytes"
 | 
						"bytes"
 | 
				
			||||||
	"encoding/binary"
 | 
						"encoding/binary"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
@ -103,7 +104,7 @@ func (p *PacketAdminServerWelcome) Read(b []byte) {
 | 
				
			|||||||
	bs := make([]byte, 13)
 | 
						bs := make([]byte, 13)
 | 
				
			||||||
	_, _ = r.Read(bs)
 | 
						_, _ = r.Read(bs)
 | 
				
			||||||
	p.MapSeed = binary.LittleEndian.Uint32(bs[0:])
 | 
						p.MapSeed = binary.LittleEndian.Uint32(bs[0:])
 | 
				
			||||||
	p.MapLandscape = uint8(bs[4:1])
 | 
						p.MapLandscape = uint8(bs[4:4])
 | 
				
			||||||
	p.MapStartDate = binary.LittleEndian.Uint32(bs[5:])
 | 
						p.MapStartDate = binary.LittleEndian.Uint32(bs[5:])
 | 
				
			||||||
	p.MapX = binary.LittleEndian.Uint16(bs[9:])
 | 
						p.MapX = binary.LittleEndian.Uint16(bs[9:])
 | 
				
			||||||
	p.MapY = binary.LittleEndian.Uint16(bs[11:])
 | 
						p.MapY = binary.LittleEndian.Uint16(bs[11:])
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user