- Write(e.ChunkCoords(), 4);
- Write(e.Position(), 16);
- Write(e.Velocity(), 28);
- Write(e.Orientation(), 40);
- Write(e.AngularVelocity(), 56);
- Write(e.Bounds(), 68);
+ if (e.GetModel()) {
+ Write(e.GetModel().GetModel().ID(), 4);
+ } else {
+ Write(uint32_t(0), 4);
+ }
+ Write(e.ChunkCoords(), 8);
+ Write(e.Position(), 20);
+ Write(e.Velocity(), 32);
+ Write(e.Orientation(), 44);
+ Write(e.AngularVelocity(), 60);
+ Write(e.Bounds(), 72);