aboutsummaryrefslogtreecommitdiff
path: root/src/network/clientpackethandler.cpp
diff options
context:
space:
mode:
authorcora <coradelamouche@gmx.ch>2023-09-03 01:12:42 +0200
committercora <coradelamouche@gmx.ch>2023-09-03 01:12:42 +0200
commite2d01755b923048350359b20e31bcab2d9ddada0 (patch)
tree9554f734280111fc8bbe6675cd2a629252ae67df /src/network/clientpackethandler.cpp
parent6df1590803bf89eca455238aae006a74c98b8ce2 (diff)
downloaddragonfireclient-e2d01755b923048350359b20e31bcab2d9ddada0.tar.xz
Add on_receive_particlespawner lua CSM callback
Diffstat (limited to 'src/network/clientpackethandler.cpp')
-rw-r--r--src/network/clientpackethandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 1f17470af..eceedb643 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -1056,7 +1056,7 @@ void Client::handleCommand_AddParticleSpawner(NetworkPacket* pkt)
event->add_particlespawner.p = new ParticleSpawnerParameters(p);
event->add_particlespawner.attached_id = attached_id;
event->add_particlespawner.id = server_id;
-
+ if (m_mods_loaded && m_script->on_receive_particlespawner(*event->add_particlespawner.p)) return;
m_client_event_queue.push(event);
}