1
0

Fix minecart destruction crash (#3336)

This commit is contained in:
LogicParrot 2016-08-20 23:12:48 +03:00 committed by GitHub
parent 7b3a8a535a
commit 2f11655f00

View File

@ -1215,7 +1215,7 @@ void cMinecartWithChest::Destroyed()
// This makes the command not execute if the world is in the midst of destruction :) // This makes the command not execute if the world is in the midst of destruction :)
GetWorld()->ScheduleTask(1, [this, &Pickups](cWorld & World) GetWorld()->ScheduleTask(1, [this, Pickups](cWorld & World)
{ {
World.SpawnItemPickups(Pickups, GetPosX(), GetPosY() + 1, GetPosZ(), 4); World.SpawnItemPickups(Pickups, GetPosX(), GetPosY() + 1, GetPosZ(), 4);
}); });