1
0

Pickup spawn improvements (#4525)

Pickups are now thrown around when spawned, like in vanilla. Pickups also bail out of the collision detection checks while being created, to prevent them from blasting too far off in e.g. cobblestone generators.
This commit is contained in:
Mat
2020-03-23 02:05:47 +02:00
committed by GitHub
parent 41e09484b7
commit 7700116330
2 changed files with 5 additions and 5 deletions

View File

@@ -972,7 +972,7 @@ void cEntity::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
}
}
}
else if (!(IsMinecart() || IsTNT()))
else if (!(IsMinecart() || IsTNT() || (IsPickup() && (m_TicksAlive < 15))))
{
// Push out entity.
BLOCKTYPE GotBlock;