Fix minecart destruction crash (#3336)
This commit is contained in:
parent
7b3a8a535a
commit
2f11655f00
@ -1215,7 +1215,7 @@ void cMinecartWithChest::Destroyed()
|
||||
|
||||
|
||||
// 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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user