Set chunk field to null on entity unload.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
Improve hats mod performance.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>