don't send entity-edits to a server when in a serverless domain

This commit is contained in:
Seth Alves 2018-02-23 12:09:35 -08:00
parent d7b4eda5cd
commit 3ee979fc34

View file

@ -91,6 +91,11 @@ void EntityEditPacketSender::queueEditEntityMessage(PacketType type,
return;
}
if (entityTree->isServerlessMode()) {
// if we are in a serverless domain, don't send edit packets
return;
}
QByteArray bufferOut(NLPacket::maxPayloadSize(type), 0);
if (type == PacketType::EntityAdd) {