Something similar to the following would probably work.
In item.cs:
function ItemData::onThrow(%data,%obj,%shape)
{
%obj.wasDropped = 1;
// Rest of function omitted...
}
...
function ItemData::onCollision(%data,%obj,%col)
{
if (%obj.wasDropped)
return;
// Rest of function omitted...
}
Comments
In item.cs: