d184209521
The old code wasn't working in v5.0+, due to the separation of item entity physical_state into separate moving/sliding states. Instead, just check to see if its position has remained unchanged for a nominal amount of time before settling.