diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-30 11:20:07 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-30 11:20:07 +0100 |
commit | 8b3eaf5b05379f995bf8d55532c107b190848a69 (patch) | |
tree | b67b0d5052b512e58f27be27859522f1d4004311 /src/network/clientpackethandler.cpp | |
parent | 0a285dd338fb415744e3fb8d6a1cc3763d796c4a (diff) | |
download | dragonfireclient-8b3eaf5b05379f995bf8d55532c107b190848a69.tar.xz |
Lua API: Particle callbacks; Add NoWeather
Diffstat (limited to 'src/network/clientpackethandler.cpp')
-rw-r--r-- | src/network/clientpackethandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index c39586f2c..55f85571d 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -988,9 +988,8 @@ void Client::handleCommand_SpawnParticle(NetworkPacket* pkt) event->type = CE_SPAWN_PARTICLE; event->spawn_particle = new ParticleParameters(p); - if (g_settings->getBool("log_particles")) { - std::cout << p.pos.X << " " << p.pos.Y << " " << p.pos.Z << std::endl; - } + if (m_mods_loaded && m_script->on_spawn_particle(*event->spawn_particle)) + return; m_client_event_queue.push(event); } |