Android build issues fixed

(except i fixed the wrong stuff first...)
This commit is contained in:
mschiller890
2026-03-14 00:34:44 +01:00
parent 9fd54afd61
commit 76839dfbaa
6 changed files with 17 additions and 9 deletions

View File

@@ -413,7 +413,7 @@ void LocalPlayer::tick() {
printf("armor %d: %d\n", i, a->getAuxValue());
}
/**/
*/
updateArmorTypeHash();
#ifndef STANDALONE_SERVER

View File

@@ -74,7 +74,7 @@ void HumanoidMobRenderer::additionalRendering(Mob* mob, float a) {
// Render player cape if available
{
Player* player = dynamic_cast<Player*>(mob);
Player* player = Player::asPlayer(mob);
if (player) {
const std::string capeTex = player->getCapeTexture();
if (!capeTex.empty()) {

View File

@@ -5,6 +5,7 @@
#include <cctype>
#include <cstring>
#include <string>
#include <sstream>
#include <vector>
#if defined(_WIN32)
@@ -176,7 +177,9 @@ bool resolveAndConnect(const std::string& host, int port, int& outSock) {
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
const std::string portStr = std::to_string(port);
std::ostringstream portStream;
portStream << port;
const std::string portStr = portStream.str();
if (getaddrinfo(host.c_str(), portStr.c_str(), &hints, &result) != 0)
return false;