From c11ca96c3de23c35788a9c9c109fbe38e3caeb3a Mon Sep 17 00:00:00 2001 From: KingCol13 <48412633+KingCol13@users.noreply.github.com> Date: Sat, 24 Oct 2020 20:48:48 +0300 Subject: TNT Changes (#4970) + Make TNT drop pickups, change a few comments. + Give each ray random intensity, instead of each explosion. * Use direction instead of destination, rewrite for pairs of edges. --- src/World.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/World.cpp') diff --git a/src/World.cpp b/src/World.cpp index 88e76c817..c3996c8ba 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -1390,10 +1390,9 @@ bool cWorld::ForEachFurnaceInChunk(int a_ChunkX, int a_ChunkZ, cFurnaceCallback void cWorld::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_BlockY, double a_BlockZ, bool a_CanCauseFire, eExplosionSource a_Source, void * a_SourceData) { cLock Lock(*this); - if (!cPluginManager::Get()->CallHookExploding(*this, a_ExplosionSize, a_CanCauseFire, a_BlockX, a_BlockY, a_BlockZ, a_Source, a_SourceData) && (a_ExplosionSize > 0)) { - // TODO: CanCauseFire gets reset to false for some reason + // TODO: CanCauseFire gets reset to false for some reason, (plugin has ability to change it, might be related) const cEntity * Entity; switch (a_Source) -- cgit v1.2.3