mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Check for denied access in itemdef/nodedef/media fetch loop
This commit is contained in:
parent
e1f9ba435f
commit
a50db0e824
1 changed files with 6 additions and 0 deletions
|
@ -1215,6 +1215,12 @@ void the_game(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Break conditions
|
// Break conditions
|
||||||
|
if(client.accessDenied()){
|
||||||
|
error_message = L"Access denied. Reason: "
|
||||||
|
+client.accessDeniedReason();
|
||||||
|
errorstream<<wide_to_narrow(error_message)<<std::endl;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if(!client.connectedAndInitialized()){
|
if(!client.connectedAndInitialized()){
|
||||||
error_message = L"Client disconnected";
|
error_message = L"Client disconnected";
|
||||||
errorstream<<wide_to_narrow(error_message)<<std::endl;
|
errorstream<<wide_to_narrow(error_message)<<std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue