mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-14 07:47:13 +00:00
fix(property): naming a model no longer renames the property
The model info window sends UpdatePropertyOrModelForFilterCheck with isProperty false (client 0x00cc42e0); only the property editor sends it true (0x00c2e710). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -373,6 +373,9 @@ namespace GameMessages {
|
||||
}
|
||||
|
||||
void UpdatePropertyOrModelForFilterCheck::Handle(Entity& entity, const SystemAddress& sysAddr) {
|
||||
// A model's name and description (the property editor's model info window,
|
||||
// LWOPropertyEditorComponent::OnUpdateModelDescription 0x00cc42e0) aren't stored yet; they must not rename the property
|
||||
if (!isProperty) return;
|
||||
auto* property = PropertyManagementComponent::Instance();
|
||||
// Only the owner names the property
|
||||
const auto* sender = PlayerManager::GetPlayer(sysAddr);
|
||||
|
||||
@@ -186,7 +186,8 @@ namespace GameMessages {
|
||||
int32_t renew{}; // optional
|
||||
};
|
||||
|
||||
// Client -> server. A new name and description for the property.
|
||||
// Client -> server. A new name and description for the property (isProperty) or for a placed model (worldId: its object,
|
||||
// ugcId: its user model id).
|
||||
struct UpdatePropertyOrModelForFilterCheck : public NetGameMsg {
|
||||
UpdatePropertyOrModelForFilterCheck() : NetGameMsg(MessageType::Game::UPDATE_PROPERTY_OR_MODEL_FOR_FILTER_CHECK) {}
|
||||
void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
|
||||
Reference in New Issue
Block a user