diff --git a/dGame/dComponents/VendorComponent.cpp b/dGame/dComponents/VendorComponent.cpp index 492241c9..7645ee21 100644 --- a/dGame/dComponents/VendorComponent.cpp +++ b/dGame/dComponents/VendorComponent.cpp @@ -1,6 +1,6 @@ #include "VendorComponent.h" -#include +#include "BitStream.h" #include "Game.h" #include "dServer.h" diff --git a/dGame/dEntity/Entity.cpp b/dGame/dEntity/Entity.cpp index 2c734195..d26898fb 100644 --- a/dGame/dEntity/Entity.cpp +++ b/dGame/dEntity/Entity.cpp @@ -279,6 +279,9 @@ void Entity::Initialize() { break; case eReplicaComponentType::VENDOR: AddComponent(); + if (!HasComponent(eReplicaComponentType::PROXIMITY_MONITOR)) { + AddComponent(); + } break; case eReplicaComponentType::INVENTORY: AddComponent(); @@ -409,6 +412,12 @@ void Entity::Initialize() { case eReplicaComponentType::BUILD_BORDER: AddComponent(); break; + case eReplicaComponentType::DONATION_VENDOR: + AddComponent(); + if (!HasComponent(eReplicaComponentType::PROXIMITY_MONITOR)) { + AddComponent(); + } + break; case eReplicaComponentType::GHOST: case eReplicaComponentType::SPAWN: case eReplicaComponentType::MODULAR_BUILD: @@ -469,9 +478,6 @@ void Entity::Initialize() { case eReplicaComponentType::USER_CONTROL: case eReplicaComponentType::IGNORE_LIST: case eReplicaComponentType::INTERACTION_MANAGER: - case eReplicaComponentType::DONATION_VENDOR: - AddComponent(); - break; case eReplicaComponentType::COMBAT_MEDIATOR: case eReplicaComponentType::ACHIEVEMENT_VENDOR: case eReplicaComponentType::GATE_RUSH_CONTROL: