slayr288/RealisticBackpacks — pull request #3 by snowleo (2014-01-31 23:30:54+00:00)
Title: Several thread-safety fixes

This commit fixes several problems with unsafe access to variables.

- Do not use onMove, it's called too often, use scheduled task instead
- Do not call Inventory.contains from an async thread
- Do not serialize Inventory from an async thread
- Do not cancel an event after the event method has been returned
- Do not access a map in an async thread and remove entries from it