moar fighting code.
Fix a number of entity sync bugs.