Update StarNpc.cpp
This commit is contained in:
parent
0ef8807539
commit
b7aa185070
@ -254,7 +254,7 @@ RectF Npc::collisionArea() const {
|
|||||||
pair<ByteArray, uint64_t> Npc::writeNetState(uint64_t fromVersion) {
|
pair<ByteArray, uint64_t> Npc::writeNetState(uint64_t fromVersion) {
|
||||||
// client-side npcs error nearby vanilla NPC scripts because callScriptedEntity
|
// client-side npcs error nearby vanilla NPC scripts because callScriptedEntity
|
||||||
// for now, scrungle the collision poly to avoid their queries. hacky :(
|
// for now, scrungle the collision poly to avoid their queries. hacky :(
|
||||||
if (m_npcVariant.overrides.getBool("overrideNetPoly", false)) {
|
if (m_npcVariant.overrides && m_npcVariant.overrides.getBool("overrideNetPoly", false)) {
|
||||||
if (auto mode = entityMode()) {
|
if (auto mode = entityMode()) {
|
||||||
if (*mode == EntityMode::Master && connectionForEntity(entityId()) != ServerConnectionId) {
|
if (*mode == EntityMode::Master && connectionForEntity(entityId()) != ServerConnectionId) {
|
||||||
PolyF poly = m_movementController->collisionPoly();
|
PolyF poly = m_movementController->collisionPoly();
|
||||||
|
Loading…
Reference in New Issue
Block a user