feat: Added the generate command to load existing world saves

This commit is contained in:
Nicholas Novak
2023-11-13 16:22:46 -08:00
parent 822bda68d6
commit 89a6ddc9af
9 changed files with 189 additions and 23 deletions

View File

@@ -75,7 +75,7 @@ func handleConn(clientConn net.Conn) {
if errors.Is(err, io.EOF) {
return
}
panic(err)
log.Errorf("Error reading packet from server: %v", err)
}
// log.Infof("Received packet with id %.2x", p.ID)
@@ -103,6 +103,6 @@ func handleConn(clientConn net.Conn) {
// Now, we need to copy the network data from the client to the server
log.Info("Copying data from the client to the server")
if _, err := io.Copy(wrappedServerConn, clientConn); err != nil {
panic(err)
log.Errorf("Error copying data to the server: %v", err)
}
}