Fixed packet listener, improved entity tracking logic

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>