fix particles being sent from the server

This commit is contained in:
DrPerkyLegit
2026-05-31 20:50:30 -04:00
parent baa6745f45
commit 61f363e803
5 changed files with 131 additions and 165 deletions
+5 -4
View File
@@ -1683,14 +1683,15 @@ void ServerLevel::flagEntitiesToBeRemoved(unsigned int *flags, bool *removedFoun
}
void ServerLevel::sendParticles(const ParticleType* type, bool longDistance, double x, double y, double z, int count, double dx, double dy, double dz, double speed, arrayWithLength<int> data)
{
wchar_t buf[32];
swprintf_s(buf, L"%d", type->getId());
auto packet = make_shared<LevelParticlesPacket>(
type,
longDistance,
buf,
(float)x, (float)y, (float)z,
(float)dx, (float)dy, (float)dz,
(float)speed,
count,
data
count
);
for (auto const& p : players)