Update StarNpc.cpp

This commit is contained in:
Kae 2023-07-29 12:14:11 +10:00
parent 224ad2c2c0
commit 40a2fe57e0

View File

@ -258,7 +258,7 @@ pair<ByteArray, uint64_t> Npc::writeNetState(uint64_t fromVersion) {
if (auto mode = entityMode()) {
if (*mode == EntityMode::Master && connectionForEntity(entityId()) != ServerConnectionId) {
PolyF poly = m_movementController->collisionPoly();
m_movementController->setCollisionPoly({ { 0.0f, -FLT_MAX } });
m_movementController->setCollisionPoly({ { 0.0f, -3.402823466e+38F }});
auto result = m_netGroup.writeNetState(fromVersion);
m_movementController->setCollisionPoly(poly);
return result;