Expanded Lua crash-proofing and efficiency changes to object types beyond Mob.